Skip to content

Instantly share code, notes, and snippets.

@axani
Created June 29, 2015 15:46
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save axani/fb5c59ce4ed3b63f9064 to your computer and use it in GitHub Desktop.
Save axani/fb5c59ce4ed3b63f9064 to your computer and use it in GitHub Desktop.
CodeKit Hook: Run Python in current iTerm window
-- CodeKit -> Hooks: Run the following "Apple Script"
tell application "iTerm"
tell the current terminal
activate current session
tell the last session
write text "python \"path to/pythonscript.py\""
end tell
end tell
end tell
@axani
Copy link
Author

axani commented Jun 29, 2015

Needless to say that this works with other scripts, too

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment