Tinderbox v10 Icon

Calling the Tinderbox application

Many of the code examples in this section assume the example will be run inside a call to the Tinderbox explanation, as is explained below.

Addressing the Tinderbox app

In order to tell AppleScript to address Tinderbox, a tell call (or outer tell block) should refer to the application. Most specific is to use the names of the current (or desired) app version. This calls the installed Tinderbox v.10.x:

tell application "Tinderbox 10"

To save having to specify the version number, the name can be shortened:

tell application "Tinderbox"

this maps via a partial match-from-start on app's name. This means scripts do not have to be updated every time a new Tinderbox major version is released, e.g. going from v10 to v11, etc.

An older method, that bypasses use of the app name is to use the AppleScript 4-character AppleScript application id:

tell application id "Cere"

calls the installed Tinderbox version.

Thus the latter suggested as the best option because the bundle identifier—here Cere— can only be changed by the developer. On the other hand, anyone can change the name of the app in from 'Tinderbox 10.app' to 'Tinderbox.app' or vice-versa, with the risk of making scripts not work since tell application searches for a package with that name in the OS' Applications folder.

Multiple installed versions

This can happen easily, especially for beta testers and Backstage members, e.g. having the current public release and the latest beta installed. Or, when a new major version comes out with significant changes, keeping the last public release installed for a bit. Note however, that AppleScript searches the OS Applications folder for the app so as long as only one version of the app is installed there no conflict should occur.

If keeping the last version installed in the Applications folder during the early days of a new version, e.g. 'Tinderbox 9.app' and'Tinderbox 10.app' and wanting to target a particular version, it may be necessary to use the first method with the full application name.


See also—notes linking to here: