Skip to content

Instantly share code, notes, and snippets.

@swinton
Created September 16, 2016 15:43
Show Gist options
  • Save swinton/9f0be6bc451b614c7d02fa5d47e6d5e7 to your computer and use it in GitHub Desktop.
Save swinton/9f0be6bc451b614c7d02fa5d47e6d5e7 to your computer and use it in GitHub Desktop.
-- https://gist.github.com/swinton/9f0be6bc451b614c7d02fa5d47e6d5e7
on alfred_script(q)
set cmd to q
tell application "iTerm"
activate
tell current window
set t to (create tab with default profile)
set s to current session of t
tell s to write text cmd
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