applescript - script auto correcting incorrectly when i compile and key down key up not working as well -
alright i'm having lot of issues applescript editor. when ever key key down sequence key letter a. example.
tell application "system events"
key down "u" key "u" delay 1 end tell
this keystroke , don't know why.
^ thats minor issue though big problem want swap between 3 different video game applications. duplicate of same game. heres how basic script goes.
tell application "video game" activate
tell application "system events" keystroke bunch of stuff end tell
tell application "video game copy" activate
tell application "system events" keystroke bunch of stuff end tell
tell application "video game copy 2" activate
tell application "system events" keystroke bunch of stuff end tell
the problem when try compile script application name corrects "video game".
any ideas on how keep compiling in correctly?
i have tried putting in bogus name when applescript asks me find app click correct 1 under browse search box. , still compile incorrectly.
thanks bunch :)
keystroke
key pressed once. helps tell process app telling system events something, i.e.
tell application "system events" tell process "app name" keystroke "u"
if want command, option, shift, etc. use this:
tell application "system events" tell process "app name" keystroke "u" using {command down, shift down, option down}
Comments
Post a Comment