Re: keystroke "Home"
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