Skip to content

Instantly share code, notes, and snippets.

@soichisumi
Last active November 5, 2017 13:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save soichisumi/c7699aeaaffda7d8b5775218fed8f62b to your computer and use it in GitHub Desktop.
Save soichisumi/c7699aeaaffda7d8b5775218fed8f62b to your computer and use it in GitHub Desktop.
apple script to run multiple commnands
on run {input, parameters}
tell application "iTerm"
activate
create window with default profile
set mySession to (current session of current tab of current window)
tell mySession
write text "echo yoyo"
repeat while is processing of mySession is true
delay 1
end repeat
write text "echo yoyoyoyoyo"
end tell
end tell
return input
end run
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment