Re: scripting System Events
Re: scripting System Events
- Subject: Re: scripting System Events
- From: Graff <email@hidden>
- Date: Mon, 08 Dec 2003 16:25:50 -0500
I believe that the modifiers need to be as a list when there is more
than one. This code seems to work:
---------
tell application "Finder" to activate
tell application "System Events"
tell process "Finder" to keystroke "J" using {command down, shift down}
end tell
---------
- Ken
On Dec 8, 2003, at 3:50 PM, David DuBois wrote:
Can anyone tell me why this doesn't work for applying a command shift
J in finder? I thought that if something could not be addressed
directly, by using system events you could address the menu directly,
but I don't have it quite right.
tell application "Finder" to activate
tell application "System Events"
tell process "Finder" to keystroke "J" using command shift down
end tell
_______________________________________________
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.