• 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
Ejecting a CD
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Ejecting a CD


  • Subject: Ejecting a CD
  • From: David Crowe <email@hidden>
  • Date: Mon, 4 Nov 2002 14:04:49 +0900

tell app "Finder"
eject (every disk whose ejectable is true)
end


... works for me for CD's without figuring out the name (note that
"every item" works in OS 9, but you have to specify "every disk" in
OS 10).

Of course, not every ejectable disk is a CD. I used to use
"description of every item/disk", but that doesn't seem to work any
more.

Furthermore, this doesn't open the CD tray if there isn't a disk in it.

- David Crowe
_______________________________________________
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.

  • Prev by Date: Re: Scripting iTunes
  • Next by Date: Finding a User Name
  • Previous by thread: Re: Play sound in Jaguar?
  • Next by thread: Finding a User Name
  • Index(es):
    • Date
    • Thread