Skip to content

Instantly share code, notes, and snippets.

@segphault
Created September 25, 2014 21:23
Show Gist options
  • Save segphault/ed3b2ff224dfa4b908da to your computer and use it in GitHub Desktop.
Save segphault/ed3b2ff224dfa4b908da to your computer and use it in GitHub Desktop.
Applescript for automatic typing Alfred workflow
on alfred_script(q)
tell application "Google Chrome"
activate
tell application "System Events"
repeat with p in paragraphs of q
repeat with w in p
keystroke "" & w
delay (random number from 0.01 to 0.2)
end repeat
keystroke return
delay (random number from 0.01 to 0.2)
end repeat
end tell
end tell
end alfred_script
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment