How come the eject button cannot be mapped through the osculator? Am I missing something? Thanks!
Announcement
Collapse
No announcement yet.
EJECT shortcut not in Value parameters?????
Collapse
X
-
-
The eject key is handled in a special manner by the system, you cannot map this key in any application.
However, you could execute an AppleScript that runs the drutil command something like to eject the tray :
Code:do shell script "drutil tray eject"
Code:do shell script "drutil tray close"
Comment
-
okay, it seems to work but the combination isn't working to put the computer to sleep, but the apple script does seem to try and eject something, does this apple script command override the keyboard button of eject?
Also what about the Tab button? : )
You rock
Comment
-
No this command tells the system to open or close the disk tray.
You should be able to find similar scripts to put the computer to sleep if you look on google.
The tab button can be mapped by using a Key Code. To know what is the key code for the tab key, use the Key Code Helper (in the Window menu).
Cheers!
Cam
Comment
Comment