Making an AppleScript that holds down a key So I'm trying to make a script that holds down a key like Left option. But I don't want to use something like

tell application "x"
    keystroke *keycode*
end tell


I tried doing that, but the app I'm trying to make it work for won't accept it. 
So I thought of trying to make a script that just holds down a key (specifically a modifier key) for an indefinite time.

Is there any solution?
Try running your code using the key down &amp; key up features of AppleScript.

code:

tell application "System Events"
    key down option
    delay 5
    key up option
end tell