The premise: In a lab situation, I am deploying software. Some of
the software demands that the CD be inserted in order to run, but I am
for obvious reasons not going to give out the software. Instead, I
have created disk images of the CDs in question, and can mount them
and the software works properly. With several software packages
available, I don't want to clutter up the desktops of the lab machines
with dozens of mounted disk images.
The problem: I need a way to automatically mount the needed disk
image, run the application, and unmount the disk image when the
application quits. I can get each part to run by itself, but I need a
way to wait until the application has quit before I unmount the disk
image.
The answer: An Applescript, some pointers that get me going in the
right direction, the one command I need to pause the applescript until
the application it launches has quit, etc. |
Clarification of Question by
haversian-ga
on
29 Jan 2003 05:42 PST
OSAX?
Yeah - it seems that Apple's done a pretty good job making their GUI
tools CLI-accessible, so a shell script should do it. I can probably
figure it out myself (I've done a little shell scripting in bash under
linux...), but if you want to save me the trouble of looking up the
right commands, that's definately worth $2:)
I believe we're putting Python on all the lab machines, so if you know
of a way to get it to work under Classic MacOS with Python, that would
work too.
|