User Tools

Site Tools


dictionary:unitinformation:setunitproperty

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
dictionary:unitinformation:setunitproperty [2009/09/28 21:43] – external edit 127.0.0.1dictionary:unitinformation:setunitproperty [2023/02/13 14:52] (current) – external edit 127.0.0.1
Line 1: Line 1:
 ====Set Unit Property==== ====Set Unit Property====
 +
 Unit Properties can store any applescript object by names. Some devices send extra keyed info that is stored here, like low battery flags. Many other datapoints are saved here for you to access and you can store anything specific to the unit that you wish here also. I store the date when I last changed the batteries in a unit in here. Unit Properties can store any applescript object by names. Some devices send extra keyed info that is stored here, like low battery flags. Many other datapoints are saved here for you to access and you can store anything specific to the unit that you wish here also. I store the date when I last changed the batteries in a unit in here.
  
Line 5: Line 6:
 **set unit property** (text, the key name of the property)\\ **set unit property** (text, the key name of the property)\\
  **to** (anything, the object or string or number or date or anything to store)\\  **to** (anything, the object or string or number or date or anything to store)\\
- **in unit** (text, the name of the unit in which to store the object)+ **in unit** (text, the name of the unit in which to store the object. Defaults to the value of [[dictionary:unitinformation:thisunit|thisUnit]])
  
 ===Examples:=== ===Examples:===
Line 14: Line 15:
 ===Notes:=== ===Notes:===
   * the **in unit** parameter is optional if you're doing the work from within the units ON or OFF script then the [[thisunit|This Unit]] value will be used if this is left out.   * the **in unit** parameter is optional if you're doing the work from within the units ON or OFF script then the [[thisunit|This Unit]] value will be used if this is left out.
-  see also [[getunitproperty|get unit property]] + 
-  * see also [[:manual:unitproperties|Unit Properties]]+===See Also:=== 
 +  * [[:manual:unitproperties|Unit Properties]] 
 +  * [[getunitproperty|get unit property]] 
 +  * [[removeunitproperty|remove unit property]] 
 +  * [[unitpropertynamesfrom|unit property names from]]
dictionary/unitinformation/setunitproperty.1254174230.txt.gz · Last modified: 2023/02/13 14:51 (external edit)