This page is a wiki. Please login or create an account to begin editing.


3 posts / 0 new
Last post
papa's picture
Offline
Joined: 2014 May 2
AppleScript with Toast

I've been teaching myself AppleScript by making some scripts to mount a CD-ROM image file then run the relevant program. One problem I'm having is with Toast-format image files. I can open the disk image file in Toast (Titanium 5.0.2), but to mount the image you have to click the Toast "Mount" button and Script Editor won't record that mouse click. Is there a trick to it?

I'm using OS J1-9.2.2.

Comments

MikeTomTom's picture
Offline
Joined: 2009 Dec 7

Script Editor won't record that mouse click

Not if it's not recordable.

In Script Editor, go "File" menu "Open Dictionary..." then navigate to the application you want to script (Toast) and open it via the Open Dictionary dialog window. This will open the AppleScriptable items list that program has available for using with AppleScript.

If what you want isn't in there, its not going to happen.

I also suggest strongly that you trial the "Virtual CD/DVD ROM Utility". This can save you a lot of "I wish there was a better way to do things" moments.

For example; you can associate mountable CD/DVD images with the Utility. Double-clicking those images launches the utility which in turn mounts the image and exits, leaving you with the mounted image. - So, with AppleScript, you can simply ask the Finder to open the associated image (all recordable) and it will mount it without needing to tell the utility to do anything. You're then free to get AppleScript to tell the Finder to "run the relevant program" on the CD (which I think is what you're wanting to do).

Also of note, the utility mounts CD/DVD images locked by default (even if they're unlocked in the Finder). You won't get those annoying "the image is locked" type Finder messages if you keep its images (Finder) unlocked.

Offline
Joined: 2011 Nov 13

I use Toast and the accompanying application "Toast Mount"
Toast mount simply mounts a toast image
I have made similar apple-scripts as well

** not sure if there is an OS9 version of toast mount