Re: Put Away vs. Eject
Re: Put Away vs. Eject
- Subject: Re: Put Away vs. Eject
- From: Emmanuel <email@hidden>
- Date: Thu, 21 Nov 2002 11:19:24 +0100
At 8:16 PM +1300 21/11/02, David Hood wrote:
The workaround code I'm using is write the script in 9 and save it
as an applet finishing with the code:
tell application "Finder"
try
eject "Course Files"
on error
put away disk "Course Files"
end try
end tell
While it works, it's ugly, does anyone have a better way for
disposing of a remote volume that'll work in both 9 and 10.
It's compact and safe, it's readable, and it works. I am not a
specialist in beauty and ugliness of scripts, so, what is ugly here?
Emmanuel
trying to no avail to insert beauty in a ugly script
tell application "Finder" -- blue skies with rainbow and flying birds
try -- gorgeous roses
eject "Course Files" -- Marilyn Monroe
on error -- Paul Newman
put away disk "Course Files" -- sunrise over the ocean in a
sky with no cloud
end try -- gold fish
end tell -- Ferrari F40
_______________________________________________
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.