Announcement

Collapse
No announcement yet.

EJECT shortcut not in Value parameters?????

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • EJECT shortcut not in Value parameters?????

    How come the eject button cannot be mapped through the osculator? Am I missing something? Thanks!

  • #2
    Eject button shortcut??

    Would love to map the eject button so I can put my computer to sleep via iphone!

    Comment


    • #3
      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"
      and to close the tray :

      Code:
      do shell script "drutil tray close"

      Comment


      • #4
        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


        • #5
          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


          • #6
            Thank You!

            Comment

            Working...
            X