• 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
keystroke (ASCII character 28) using shift down
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

keystroke (ASCII character 28) using shift down


  • Subject: keystroke (ASCII character 28) using shift down
  • From: Mark Butcher <email@hidden>
  • Date: Sun, 12 Sep 2004 06:38:18 -0700

I'm having trouble getting System Events to invoke a keystroke, specifically the 'shift-left arrow' to select the previous character to the insertion point. Here is the problem line:

keystroke (ASCII character 28) using shift down -- left arrow key

Here is the script:

tell application "Finder"
set frontprocess to name of processes whose frontmost is true
set frontprocess to item 1 of frontprocess
end tell

tell application "System Events"
tell process frontprocess
keystroke (ASCII character 28) using shift down -- left arrow key
--key code 123 using shift down -- left arrow key
click menu item "Cut" of menu "File" of menu bar item "File" of menu bar 1
keystroke (ASCII character 29) using shift down -- right arrow key
click menu item "Paste" of menu "File" of menu bar item "File" of menu bar 1
end tell
end tell

MarkB
 _______________________________________________
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

  • Follow-Ups:
    • Re: keystroke (ASCII character 28) using shift down
      • From: Bill Cheeseman <email@hidden>
    • Re: keystroke (ASCII character 28) using shift down
      • From: Paul Berkowitz <email@hidden>
  • Prev by Date: Re: Move script problem
  • Next by Date: Re: Chevrons test
  • Previous by thread: Click at (x,y)
  • Next by thread: Re: keystroke (ASCII character 28) using shift down
  • Index(es):
    • Date
    • Thread