Re: Need Help with a command to open a DMG file
Re: Need Help with a command to open a DMG file
- Subject: Re: Need Help with a command to open a DMG file
- From: David Crowe <email@hidden>
- Date: Fri, 14 Feb 2003 16:01:02 -0700
[Previously posted with wrong subject line]
Jeff;
I have written the following script to mount a .dmg file, wait for it
to be mounted, and then open an application (Oxford English
Dictionary) that uses it:
tell application "Finder"
if not (exists disk "OED2") then
open file "OED2.dmg" of folder "OED2 (vs.1.0d)" of
folder "Applications (Mac OS 9)" of startup disk using
":Applications:Utilities:Disk Copy"
set i to 1
repeat while not (exists disk "OED2") and i < 100
delay 1
set i to i + 1
end repeat
end if
open application file id "JAAP"
end tell
I'm sure you could adapt this for your requirements.
- David Crowe
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.