Put Away vs. Eject
Put Away vs. Eject
- Subject: Put Away vs. Eject
- From: David Hood <email@hidden>
- Date: Thu, 21 Nov 2002 20:16:13 +1300
Greetings,
In the never ending quest to make my life easier, I have a script where
I select the course I'm teaching from a list, the script connects to the
server, copies the course files onto the computer then unmounts the
server.
I'd like it to work smoothly in both 9 and 10 and the ugly part is
unmounting the remote volume (since 9 is put away 10 is eject).
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
9 tries the code errors on the eject and goes on to put away, 10 ejects
add doesn't worry about the incomprehensible put away.
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.
Regards,
David Hood
_______________________________________________
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.