Re: Eject key code?
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