Created
September 16, 2016 15:43
-
-
Save swinton/9f0be6bc451b614c7d02fa5d47e6d5e7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- 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