0

I need to emulate a keystroke using applescript for double time shift press.

Adding Part of snippet..

tell application "System Events"
    keystroke shift
    keystroke shift
end tell

Even tried

keystroke shift
delay 0.1
keystroke shift

still doesn't work. Any ideas?

  • What is the app you are trying to target with this double shift effect? – adamh Aug 25 '14 at 6:44
1

You need to key down followed by key up:

tell application "System Events"
    key down shift
    key up shift
    key down shift
    key up shift
end tell

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .