• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Eject key code?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Eject key code?


  • Subject: Re: Eject key code?
  • From: Philip Aker <email@hidden>
  • Date: Wed, 5 Aug 2009 22:41:03 -0700

On 2009-08-05, at 19:11:08, Andre-John Mas wrote:

Does anyone know the keycode for the eject key? I am trying to get an application to simulate an eject on a remote computer, though it depends on knowing the right key code to send.

You should be able send an AppleScript/AppleEvent targeted to the Finder of the other machine (requires CoreServices linkage minimum and enabling remote Apple events on the target machine).


The form will be something like:

tell application "Finder" of machine "eppc://192.168.1.2" to eject disk "Backups"

or possibly

tell application "Finder" of machine "other.local" to eject disk "Backups"


Philip Aker echo email@hidden@nl | tr a-z@. p-za-o.@

Democracy: Two wolves and a sheep voting on lunch.

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Eject key code? (From: Andre-John Mas <email@hidden>)

  • Prev by Date: Re: Eject key code?
  • Next by Date: Re: Eject key code?
  • Previous by thread: Re: Eject key code?
  • Next by thread: Re: Eject key code?
  • Index(es):
    • Date
    • Thread