Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'For just the optical drive?' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
For just the optical drive?
Authored by: genericuser on Jan 07, '05 06:40:04PM

How would one modify this script to eject discs only in the internal optical drive? Thanks!

-Geoff

---
Bugmenot public account



[ Reply to This | # ]
For just the optical drive?
Authored by: kandrewnet on Sep 24, '05 07:48:06PM
I modified the above code to do this. It will eject any optical drives, zip drives, etc.

tell application "Finder"
	activate
	try
		set the_disks to (disks whose ejectable = true or not local volume = false)
		eject the_disks
	end try
end tell


[ Reply to This | # ]