AppleScripts for Helix
The scripts on this page are available free of charge to all Helix users. More scripts are available exclusively to subscribers of the Learning AppleScript with Helix self-paced tutorial.
Scripts are grouped based on which icon type they (primarily) work with.
Abacus
- Abacus Expression Language Exporter: This script creates a text file containing every abacus (including including form query and power query statements) in its Abacus Expression Language (AEL) format. This shows how to existing abaci appear in AEL. Examining the output will help you begin to see how you can create a complete abacus via this text-based language. (v1.0: Dec 10, 2011)
- Make A Constant: This script shows how to use the Abacus Expression Language (AEL) to create any abacus constant. It includes some user interaction code. (v1.0: Jan 16, 2012)
- Make True Constant: This script shows how simple it is to use the Abacus Expression Language (AEL) to create an abacus constant for ‘true’ in the front relation window. (v1.0: Jan 16, 2012)
Sequence
- Add Draw Screen (to Sequences): This script inserts a draw screen command after every step of the selected sequences. This may help alleviate some Client crashes related to sequences that “get ahead of themselves.” A list of sequences is presented so the user can choose which ones to modify. (v1.0: Mar 14, 2012)
- Remove Draw Screen (from Sequences): Sick of the Draw Screen commands added via the “Add Draw Screen” script? This script removes the draw screen commands from the selected sequences. A list of sequences is presented so the user can choose which ones to modify. (v1.0: Mar 14, 2012)
- Find Printing Sequences: This script examines every sequence in a collection and reports those that contain any of the print commands (page setup, print form, find and print all) along with the ‘show dialogs’ state of each one. It is important that sequences that print be able to show dialogs as long as they are to be used in both Classic and OS X Helix. The script also offers to switch sequences set to ‘Never’ to ‘Optionally’ show dialogs. (v1.0: Dec 10, 2011)
User
- Restore User Passwords: This script restores user passwords (stored in a tab delimited text file) after structure application has removed them. It also shows a techinque for preserving a variable in a property, allowing the script to automatically choose the file on subsequent runs. (v1.0: Mar 27, 2012)
Working With Data
- Record Data Explorer: This script demonstrates the record counting capabilities of Helix via AppleScript. Place it in your scripts menu or open it with your script editor. Then open a collection and run the script. It reports the record count of each relation along with the specific count of defined records for each field in the relation. Version 1.1 updated for current terminology. (v1.1: Jan 23, 2012)
- Delete Relation Data: This script that demonstrates how to delete data from a collection. It also shows how to present the user with a list of all of the relations in the open collection, how to test the current selection to provide a better user experience, and how to sort the list using the Unix sort. (v1.0: Jan 14, 2012)
Miscellaneous
- Search for Duplicate Names: This script searches a collection for icons with identical names, which might lead to ambiguity when addressed via scripting. Only identically named instances of the same icon class within a parent are reported, as that is the only ambiguity. That is: two abaci named "true" in two different relations are not reported, but two abaci named "true" in the same relation are. Version 1.1 trims the dialog when there are too many lines to fit on your screen. (v1.1: Mar 27, 2012)
- Rename Duplicates: This script addresses the same issue as ‘Search for Duplicates’ but it also renames the duplicate icons, appending text to the end of the name. (v1.0: Mar 27, 2012)
- Damage Identifier: This is a script that might help you identify the icon that Helix RADE Europa reports as damaged, should such a thing happen to you. Version 1.3 fixes the glaring error that made the first object appear twice, if it is a named object. It also walks all the way up to the collection level, just in case. (v1.3: Apr 12, 2012)
- Make and Delete Icons: This is a simple script that shows how to make and delete icons. It doesn’t do anything useful beyond showing the scripting syntax. (v1.0: Sep 26, 2011)
Non-Helix
- Duplication Timing Test: This script isn’t really a Helix script; it’s a script that tests the speed of a hard drive in repeatedly copying a file. I wrote this to test whether a hard drive was running slower than it should be (it was) and thought others might find it useful. Run it now to gather baseline data, then later to see if the drive has slowed. (v1.0: Sep 29, 2011)
- File Size Monitor: This script isn’t really a Helix script; it’s a Finder script that monitors the size of a file and notifies you (via Growl) when the file size changes. I wrote this when we were tracking down a bug and thought others might find it useful. (v1.0: Jul 13, 2011)