Re: keystroke command
Re: keystroke command
- Subject: Re: keystroke command
- From: Bill Cheeseman <email@hidden>
- Date: Mon, 29 May 2006 14:44:38 -0400
- Thread-topic: keystroke command
on 2006-05-29 1:40 PM, Robert Poland at email@hidden wrote:
> For me, your suggestion selects all of the DESKTOP items, even if I
> do as follows;
>
> activate application "Finder"
> tell application "System Events"
> tell process "Finder" to tell window 1
> keystroke "a" using {command down} -- select all
> end tell
> end tell
I think you have to have a window open and frontmost for it to select all
the items in the front window.
The 'keystroke' and 'keycode' commands should be addressed to the
application. They act on whatever UI element happens to have keyboard focus
at the moment, except of course that key combinations that the application
recognizes as keyboard shortcuts (typically, with command down) are
interpreted as keyboard shortcuts.
--
Bill Cheeseman - email@hidden
Quechee Software, Quechee, Vermont, USA
http://www.quecheesoftware.com
PreFab Software - http://www.prefab.com/scripting.html
The AppleScript Sourcebook - http://www.AppleScriptSourcebook.com
Vermont Recipes - http://www.stepwise.com/Articles/VermontRecipes
_______________________________________________
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