• 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: Eject image
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Eject image


  • Subject: Re: Eject image
  • From: Lists <email@hidden>
  • Date: Thu, 28 Feb 2013 21:33:01 -0800

On Feb 28, 2013, at 10:15 AM, Robert Poland wrote:

I'm trying to create a script that will close a disk image if it exists.

I may be missing something in this thread but is anything wrong with an old fashioned tell Finder?

tell application "Finder"
if "Firefox" is in (name of every disk) then eject disk "Firefox"
end tell

(The Firefox install dog was handy)

J
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Prev by Date: Re: Eject image
  • Previous by thread: Re: Eject image
  • Next by thread: Pages-inserted/generated page numbers throw off char indexing in body text
  • Index(es):
    • Date
    • Thread