• 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
Re: Put Away vs. Eject
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Put Away vs. Eject


  • Subject: Re: Put Away vs. Eject
  • From: John Delacour <email@hidden>
  • Date: Thu, 21 Nov 2002 10:15:48 +0000
  • Mac-eudora-version: 5.3a9

At 8:16 pm +1300 21/11/02, David Hood wrote:

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 fine, but you could compile it in OS 10 also if you used the raw code


tell app "Finder"
try
<<event fndrptwy>> "ZIP_100" -- replace <<>> with the real thing
on error
<<event fndrejct>> "ZIP_100"
end
end

-- JD
_______________________________________________
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.

References: 
 >Put Away vs. Eject (From: David Hood <email@hidden>)

  • Prev by Date: Re: Put Away vs. Eject
  • Next by Date: Re: Put Away vs. Eject
  • Previous by thread: Re: Put Away vs. Eject
  • Next by thread: Re: illustrator: how to kill these legends?
  • Index(es):
    • Date
    • Thread