Apple Script "do when pressed" command?
hey guys i need the right command that would activate a script once i press F1 (for example)
So it should be smthg like:
If F1 is pressed Then
tell application "System Events"
keystroke "123"
keystroke tab
keystroke "134"
end tell
else
do nothing
end if
and i save the script under what?
I need it to work either in text edit- pages- safari.... ect... (wherever there's a text box)
THANK YOU
MacBook Pro with Retina display, OS X Mavericks (10.9)