Skip to content

Instantly share code, notes, and snippets.

@JanX2
Created November 10, 2015 21:46
Show Gist options
  • Save JanX2/c7412a24912beca254a3 to your computer and use it in GitHub Desktop.
Save JanX2/c7412a24912beca254a3 to your computer and use it in GitHub Desktop.
set theString to "Test"
set theseCharacters to characters of theString
tell application "System Events"
delay 2 -- Time to switch, if running from editor. Can be removed, if running from menu.
tell front process
repeat with thisChar in theseCharacters
keystroke (thisChar as text)
delay 0.1
end repeat
end tell
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment