Skip to content

Instantly share code, notes, and snippets.

@axani
Created June 29, 2015 15:46
Show Gist options
  • Save axani/fb5c59ce4ed3b63f9064 to your computer and use it in GitHub Desktop.
Save axani/fb5c59ce4ed3b63f9064 to your computer and use it in GitHub Desktop.

Revisions

  1. axani created this gist Jun 29, 2015.
    10 changes: 10 additions & 0 deletions Run pythonscript in current iTerm window
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,10 @@
    -- 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