Is there a script/patch for OSX to open/eject a CD/DVD tray WITHOUT the keyboard?

10 replies [Last post]
AG-Wolf's picture
Offline
Joined: Dec 20 2003
Posts: 136

My sister is using a USB keyboard which has proprietary drivers for some of its functions. It does not have a standard eject button like the Apple Extended Keyboard, and because it's funky, the function keys don't register (holding F12 doesn't do squat). My brother in law said he remembered a script or something for OSX which put a button in the menu bar or something so you can just click that to open the tray, but because I switched to Windows XP after Apple stopped supporting OS 9, I no longer know where or how to look for funky little piece of home-made Mac software. If anyone could lend a hand, it would be appreciated Smile THanks in advance...

__________________

Main PC: Sempron 2Ghz 256k L2/768MB Ram/40,60,120Gb HD's/CDRW/DVD+-RW/WinXP SP2
» Main Mac: PowerMac 6500 inside Color Classic/G3 500Mhz 1MB L2/128Mb Ram/40Gb HD/OS 9.1/ATI Rage 128/OrangeLink USB-FireWire/CSII E-net/TV-FM Tuner

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
iamdigitalman's picture
Offline
Joined: Mar 2 2004
Posts: 629
there is a eject menubar item

there is a eject menubar item. You can activate it by going to a folder that contains them, I forget where it is. On tiger, I have a widget called Menu Butler, which allows you to click on the one you want to turn on, and it will activate it.

hope this helps.

-digital Wink

TheUltimateMacUser's picture
Joined: Jan 28 2004
Posts: 615
USB Overdrive

Can USB Overdrive let you assign a button for eject?

__________________

<> AppleFritter Chat: #AppleFritter on irc.freenode.net <> Click here to join!

eeun's picture
Offline
Joined: Dec 19 2003
Posts: 1891
A couple choices...

From MacFixit:

Quote:

Enabling an Eject menu
As a side note, you can enable another means of ejecting disks by opening the folder System/Library/CoreServices/Menu Extras and double-clicking the file "Eject.menu".
An eject icon will appear in the menubar that can be used to close and open selected optical drives.

Verified that works in 10.4.10 just now.

Unsure if the above activates the menu permanently.

There's also the option of highlighting the removable drive icon, and pressing command-E to eject it (used to be command-Y Pre-OS X).

__________________

"Give a man a fire, he's warm for a day. Set a man on fire and he's warm for the rest of his life."
(Terry Pratchett)

Hawaii Cruiser's picture
Offline
Joined: Jan 20 2005
Posts: 1434
Cool. Works in Panther and is

Cool. Works in Panther and is still there after restart.

Offline
Joined: Jul 1 2005
Posts: 16
Yes on USB Overdrive

TheUltimateMacUser asks:

"Can USB Overdrive let you assign a button for eject?"

Yes, from the popup on the right side of the USB Overdrive window, you can select "Eject" to assign to any mouse button.

Offline
Joined: Jul 1 2005
Posts: 16
A script to eject the optical drive tray

The Menu Extra "Eject.menu" is what the original poster was recollecting, but if you want a script that does the same thing, put this into Script Editor, and save it as an application:

do shell script "drutil tray eject 1"

Jon's picture
Jon
Offline
Joined: Dec 20 2003
Posts: 2804
When I plug in an old iMac/B&

When I plug in an old iMac/B&W keyboard to my mini it will automatically bring up a menu icon to eject the SuperDrive after a reboot. On a full Apple keyboard the extra buttons are F17-F20.

__________________

I am not in this world to live up to other people's expectations, nor do I feel that the world must live up to mine. - Fritz Perls

Hawaii Cruiser's picture
Offline
Joined: Jan 20 2005
Posts: 1434
How about an Energy Saver button?

I'm still in Panther so I don't know if there's anything in later OS's, but what I'd really like in the menu is a button to turn the Energy Saver off and on. I want Energy Saver on when I walk away from the computer and stuff like that, but it's so annoying how I have to keep waking up my computer when I'm using it but haven't touched anything for awhile, and it's a bit tedious to have to go in and out of the preferences. Anyone know of an option?

mmphosis's picture
Offline
Joined: Aug 18 2005
Posts: 316
AppleScript "Script Editor"

-- eject CD
tell application "Finder"
repeat with vDiskNumber from 1 to the number of disks
if format of disk vDiskNumber is in {audio format, ISO 9660 format, High Sierra format, QuickTake format, Apple Photo format} then
eject disk vDiskNumber
end if
end repeat
end tell

mmphosis's picture
Offline
Joined: Aug 18 2005
Posts: 316
use the mouse

When dragging a disk, the Trash icon in the dock will appear as an Eject icon. Drag the disk to be ejected, and drop it onto the Eject disk icon in the Dock.