keystroke (ASCII character 28) using shift down
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