|
MacR–1000 |
|
As with most scriptable Macintosh applications, MacR–1000 uses very few special-purpose commands in its scripting dictionary. You can control most of the application and its features by writing scripts that address objects in the application directly, and read and set properties of those objects. The application object is the container for all other objects in MacR–1000. It has some properties that apply to the receiver as a whole, such as whether the power is on, the volume and whether it is muted, its scanning and squelch status; a VFO property, which encompasses all the settings, starting with frequency and mode, that describe a particular frequency setting; and lists of all saved frequency settings and all frequency lists. This help article can only give an overview of the MacR–1000 AppleScript dictionary. The definitive reference is the dictionary itself, which you can examine by choosing Open Dictionary… in the Script Editor File menu. By scripting the application and VFO objects, most of the things you would do just tuning around with MacR–1000 can be replicated in a script. Because the squelch status and signal strength are available through AppleScript, one might write a script that sampled activity on several frequencies over a period of time, and wrote a log of the results.
Catalogs are containers of saved settings. They can be addressed by name or by index, so that catalog 1 and catalog "All Frequencies" refer to the same object. The saved settings in catalogs can be addressed by index (saved setting 12 in catalog "All Frequencies") or by test (saved setting whose frequency is 460425000 in catalog 5). Use the add and remove commands to make changes to catalogs. These commands have the same effect as dragging a frequency into a list, or deleting it from a list: A frequency added to one list will retain its membership in others (except the Unassigned Frequencies list), and removing a frequency from a list will delete it only if the list is the All Frequencies list.
The application itself is a container of saved settings, so every saved setting and every saved setting in catalog 1 yield identical results. It is a quirk of this model that frequencies that appear in catalog 3, the lockout catalog, do not appear in the list of every saved setting. |