Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'An AppleScript to mount, run, unmount a disk image' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
An AppleScript to mount, run, unmount a disk image
Authored by: mmatties on Sep 10, '04 02:59:03PM

I used the ideas from your script and just did

tell application "Finder"
try
open item "Macintosh HD:applications:images:CalculatingCrew.dmg"
end try
repeat until name of every disk contains "Crew"
delay 1
end repeat
open item "Crew:Calculating Crew"
end tell

and it works great - for MOST applications. But some mount the image and then say that "the CD can't be found. Please insert it and try again."

Can anyone help me with this problem? Thanks!



[ Reply to This | # ]
An AppleScript to mount, run, unmount a disk image
Authored by: emendelson on Sep 11, '04 08:12:41AM

In reply to mmatties's question: the problem you came across (the app can't find the image) is EXACTLY what the script in the hint is designed to fix. It fixes the problem by NOT using the Finder to mount the disk, but by using a shell script. Try the script in the hint itself and see whether it solves the problem for you. (But reboot first, because after the application can't find the image, it will never see it again until you reboot.)



[ Reply to This | # ]