• 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: 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.

  • Follow-Ups:
    • Re: Put Away vs. Eject
      • From: Mail Lists Out <email@hidden>
References: 
 >Put Away vs. Eject (From: David Hood <email@hidden>)

  • Prev by Date: XML-RPC and basic authentication
  • Next by Date: Re: Put Away vs. Eject
  • Previous by thread: Put Away vs. Eject
  • Next by thread: Re: Put Away vs. Eject
  • Index(es):
    • Date
    • Thread