• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: scripting System Events
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >scripting System Events (From: David DuBois <email@hidden>)

  • Prev by Date: Re: To err on the exit code of the FIRST cmd of a piped do shell script
  • Next by Date: Re: (no subject)
  • Previous by thread: scripting System Events
  • Next by thread: Re: scripting System Events
  • Index(es):
    • Date
    • Thread