Apple Event: May 7th at 7 am PT

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Use Eject Key for External DVD Drive

My G5's internal CD/DVD drive died, so we got a nice external La Cie CD/DVD drive. Is there a way to get the Eject key on the keyboard mapped to work with the external drive now? Thanks for the help.

G5, Mac OS X (10.4.10)

Posted on Oct 17, 2007 1:00 PM

Reply
9 replies

Oct 17, 2007 6:27 PM in response to Mark Tomes

AFAIK, you can't remap the eject key to work with an external burner. However, these Terminal app commands will do what you want:

*drutil eject -drive <manufacturer>*
*drutil tray close -drive <manufacturer>*

In your case, try LaCie.

Alternatively, since you have only one external drive you could just fire off this Applescript:

property drawerstatus : true
if drawerstatus is true then
do shell script "drutil eject -drive external"
else
do shell script "drutil tray close -drive external"
end if
set drawerstatus to not drawerstatus

Attach it to a key using System Preferences or your method of choice. The first press will open the tray and the next will close it. Worst case, it takes two presses if something interferes with the tray.

Oct 17, 2007 10:27 PM in response to baltwo

Both the Terminal commands and the Applescript script work great. Only I am not proficient in these programs and cannot figure out where to put them to be able to hit a key and make them work. I put the title of the script in the Keyboard Shortcuts list and assigned it to F11, but hitting F11 after that does nothing. The Terminal commands were fast, but I don't know where they reside and how to activate them. Any further help would be much appreciated. Thanks!

Oct 18, 2007 12:21 AM in response to Mark Tomes

Sorry, I can't help with attaching the Applescript to a shortcut—the original hint was collected years ago, but I never implemented that option. Search the Applescript forum under OS X Technologies or post your query there. For the Terminal commands, you use the Terminal app or build a script to run it. Once again, try the Unix forum in the same location. One way to go is to put the script onto the dock and just click it.

Use Eject Key for External DVD Drive

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.