• 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: keystroke "Home"
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: keystroke "Home"


  • Subject: Re: keystroke "Home"
  • From: Robert Poland <email@hidden>
  • Date: Sun, 12 Jun 2005 13:35:40 -0600

Steve,

Just what I was looking for, Thanks.

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

Newer version http://www.versiontracker.com/dyn/moreinfo/macosx/9807

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


--
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      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >keystroke "Home" (From: Robert Poland <email@hidden>)
 >Re: keystroke "Home" (From: Stephen Jonke <email@hidden>)

  • Prev by Date: Re: Script Objects - help please!!
  • Next by Date: Help with making rule script, please
  • Previous by thread: Re: keystroke "Home"
  • Next by thread: Help with making rule script, please
  • Index(es):
    • Date
    • Thread