• 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: 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
  • Follow-Ups:
    • Re: keystroke "Home"
      • From: Robert Poland <email@hidden>
References: 
 >keystroke "Home" (From: Robert Poland <email@hidden>)

  • Prev by Date: Re: Suggestions for scripted graphing
  • Next by Date: Re: Newbie question about Text to Speech
  • Previous by thread: Re: keystroke "Home"
  • Next by thread: Re: keystroke "Home"
  • Index(es):
    • Date
    • Thread