Re: keystroke "I" using control down / command down
Re: keystroke "I" using control down / command down
- Subject: Re: keystroke "I" using control down / command down
- From: Robert Poland <email@hidden>
- Date: Sun, 15 Feb 2004 09:48:03 -0700
At 9:53 PM -0700 2/14/04, Robert Poland wrote:
Hi,
As usual I'm confused.
The script below fails many places. The GUI script example says to
use "Keystroke with,,," That errors.
I think that this changed when Panther was released. In the System
Events beta for Jaguar users, "with" works.
The dictionary says keystroke "R" using control down / shift down /
command down. That errors; "Can't make control down into a real.
If I comment out the "Tell System events" the tool show.
if I comment out only the keystroke commands then the Tools appear
only momentarily.
Enabling only the "keystroke "K"..." line does not show the tool box.
If I can get all that to work then I will need to find out how to
test for the existence of these windows so I won't be hiding them.
tell application "GraphicConverter"
activate
show tools of window 1 -- need GC 4.4.1b or later
end tell
Does this work?
tell application "GraphicConverter"
activate
show tools of window 1 -- need GC 4.4.1b or later
end tell
tell application "System Events"
tell process "GraphicConverter"
keystroke "I" with {control down, command down} -- show information
keystroke "K" with command down -- show toolbox
keystroke "R" with {control down, command down} -- show overview
keystroke "D" with {command down} -- show detail
end tell
end tell
-- Rob
I should have mentioned that I'm using OS 10.3.2.
"with" creates errors, however switching to "using" begins to work.
Contrary to GraphicConvertor", the commands need a lower case "i" and
a lower case "k". Now if can figure out how to test for existing
windows.
I wonder why the dictionary says "using control down / shift down"
when they mean "using control down, shift down"?
Thanks,
--
Bob Poland - Englewood, CO
http://www.ibrb.org/
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.