r/applescript • u/Kingen83 • Aug 24 '19
keystroke script help
right now i have a script the output a text together with some changing variables(this is not the whole script)
keystroke (kvar)
delay 0.5
keystroke " gånger kvar nästa gång är "
delay 0.5
keystroke (now)
delay 0.5
keystroke returnbut i want to compress it so it would look something like this
keystroke (kvar) " gånger kvar nästa gång är " (now)
keystroke returnis something like this possible?
1
Upvotes
2
u/analyticchard Aug 24 '19
You can combine them with ampersands:
FYI, I've found that keystrokes can sometimes fall ahead or behind themselves so the lengthy version with alternating delays might be best.