• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Put Away vs. Eject
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Put Away vs. Eject
      • From: John Delacour <email@hidden>
    • Re: Put Away vs. Eject
      • From: Emmanuel <email@hidden>
  • Prev by Date: Re: AppleScript CGI and Mac OS 10.2.x
  • Next by Date: [OT] Re: RegEx & Concordances
  • Previous by thread: Re Alternative to ScriptEditor
  • Next by thread: Re: Put Away vs. Eject
  • Index(es):
    • Date
    • Thread