Re: keystroke "Home"
Re: keystroke "Home"
- Subject: Re: keystroke "Home"
- From: Stephen Jonke <email@hidden>
- Date: Sun, 12 Jun 2005 14:06:16 -0400
As far as pressing the Home key is concerned, you need to use the
"key code" command, and for that you need to know the "AsyncKey
number". You can use the tool "AsyncKeys!" to find out the asynckey
number of a key. Here it is:
http://macupdate.com/info.php/id/5409
This program is a little buggy, but it still basically works. Run the
program, press the key and it will show the asynckey number for it.
To make a long story short, though, the asynckey number for the Home
key is 115. So:
tell application "Finder" -- the existence of a folder (list view)
is assumed in this example
activate
tell application "System Events"
key code 115
end tell
end tell
Steve
_________________________________________________________________
Stephen Jonke email@hidden
On Jun 12, 2005, at 11:46 AM, Robert Poland wrote:
Hi,
OS 10.4.1
I'm trying to script the action of homing the list view of a
folder. The following doesn't do it.
tell application "Finder" -- the existence of a folder (list view)
is assumed in this example
activate
tell application "System Events"
tell window 1 to keystroke "Home" -- neither case seems to
work
end tell
end tell
It seems to interpret the Home command to get the Home folder. It
there a command that will do it?
Tia,
--
Bob Poland - Fort Collins, CO
http://www.ibrb.org/
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (Applescript-
email@hidden)
Help/Unsubscribe/Update your Subscription:
40mac.com
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden