Skip to content

Instantly share code, notes, and snippets.

@logicalgroove
Created February 19, 2023 23:00
Show Gist options
  • Save logicalgroove/c06d254be7d5dcd682a28c37ba66b16e to your computer and use it in GitHub Desktop.
Save logicalgroove/c06d254be7d5dcd682a28c37ba66b16e to your computer and use it in GitHub Desktop.
screen_typer.scpt
on run {input, parameters}
activate application "iTerm"
tell application "iTerm"
tell current tab of current window
set theString to "Lorem ipsum dolor sit amet, consectetur adipiscing elit."
tell application "System Events"
repeat with thisChar in theString
keystroke thisChar
delay 0.03
end repeat
keystroke return
end tell
end tell
end tell
end run
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment