".PropertyName" in GetPropertyValue and SetPropert
Posted: Sun Jul 15, 2007 11:09 am
If you could reference the underlying device implicitly from a script, then you could have reusable scripts for script devices. Currently (I think), all property reference from within a script must specifically reference a device/property pair. This forces a script to be associated with single device. If you could use ".property" to access the device associated with a script, then scripts could be used for multiple devices. This has the benefit of only having to fix bugs or add enhancements in a single place.
For example, I'm working on a ListManager script device. I would like to be able to create multiple ListManagers to work on various lists concurrently. If I had the above capability, I could create ListManager1, ListManager2, etc and they could all point to the same script. Today, I have to create a copy of the script and modify the script for each device and then when I have changes, I have to go back to each copy of the script and change it in the same way.
For example, I'm working on a ListManager script device. I would like to be able to create multiple ListManagers to work on various lists concurrently. If I had the above capability, I could create ListManager1, ListManager2, etc and they could all point to the same script. Today, I have to create a copy of the script and modify the script for each device and then when I have changes, I have to go back to each copy of the script and change it in the same way.