keystroke command
keystroke command
- Subject: keystroke command
- From: Robert Poland <email@hidden>
- Date: Mon, 29 May 2006 11:03:29 -0600
Hi,
In my quest to improve a script to set index labels I have hit a new snag...
tell application "Finder"
activate
if (keys pressed) contains "Option" then beep -- this line
breaks the following
-- the following assumes a window is open in the Finder
-- this is used as the command "Select all" doesn't seem to
work with a finder window
tell application "System Events"
keystroke "a" using {command down} -- select all
end tell
end tell
Why isn't the keystroke command allowed?
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 (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden