• 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: kai <email@hidden>
  • Date: Sun, 12 Jun 2005 17:20:37 +0100


On Sunday, June 12, 2005, at 04:46 pm, Robert Poland wrote:

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?

Not sure I completely understand what you're trying to do, Bob - but does this get close?


----------------

tell application "Finder" to activate
tell application "System Events" to keystroke ¬
	"h2" using {command down, shift down}

----------------

---
kai

_______________________________________________
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>)

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