Ejecting a CD
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.