UniqueIDBasedObject
A unique-ID-based script object.
UniqueIDBasedObject Properties
| Property |
Type |
Access |
Description |
| id |
Long |
read |
The object’s unique id. |
| index |
Long |
read |
Index of the object within its parent object. |
| label |
String |
r/w |
A label that can be set to any string. |
| parent |
Object |
read |
The object’s parent. |
| properties |
An array of property names and values |
r/w |
Property that allows setting of several properties at the same time. |
UniqueIDBasedObject Methods
| Method |
Returns |
Description |
| extractLabel |
String |
Get the label value associated with the given key. |
| getElements |
Array of Objects |
Resolve the object specifier. |
| insertLabel |
Nothing |
Set the label associated with the given key. |
| toSource |
String |
Generate JavaScript source that, if executed, will return the specified objects. |
| toSpecifier |
String |
Retrieve the object specifier. |
Previous post: UserDictionaries
Next post: TrapPresets