Google Answers Logo
View Question
 
Q: Applescript ( No Answer,   0 Comments )
Question  
Subject: Applescript
Category: Computers > Operating Systems
Asked by: haversian-ga
List Price: $2.06
Posted: 18 Jan 2003 17:15 PST
Expires: 01 Feb 2004 13:37 PST
Question ID: 145352
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.

Request for Question Clarification by cerebrate-ga on 19 Jan 2003 03:12 PST
Are the lab machines running Mac OS X, OS 9, or an ealier version?

Clarification of Question by haversian-ga on 20 Jan 2003 01:16 PST
Ach - sorry.  I had that info in a first draft but it got lost
somewhere along the way.  The machines are currently running OS9.2.2
in the lab, but there are other computers running 9.1 and OSes as far
back as 8.0.  I assume under OSX it's a simple matter of creating a
shell script, but if it isn't and you know how to make that work too,
I'd be appreciative.  OS9 is the main thrust of the question though.

Request for Question Clarification by cerebrate-ga on 28 Jan 2003 14:50 PST
As far as I can tell, it's impossible to do this in Applescript alone.
However, I have been able to track down an OSAX that offers this
functionality - would that constitute an acceptable answer?

(In OS X, should just be a matter of a shell script, yes.)

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.
Answer  
There is no answer at this time.

Comments  
There are no comments at this time.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy