I have two DVD/CD drives -- one internal one external with my G5. I've been using this AppleScript, along with Spark, to create a hotkey for opening and closing the external drive:
property drawerstatus : true
if drawerstatus is true then
do shell script "drutil tray eject -drive external"
else
do shell script "drutil tray close -drive external"
end if
set drawerstatus to not drawerstatus
For the internal drive, I use the eject key on the keyboard. After installing Tige,r I found that when I hit my external hotkey, both drives opened or closed.
Comments (0)
Mac OS X Hints
http://hints.macworld.com/article.php?story=20050520155515566