Last active
November 5, 2017 13:23
-
-
Save soichisumi/c7699aeaaffda7d8b5775218fed8f62b to your computer and use it in GitHub Desktop.
apple script to run multiple commnands
This file contains hidden or 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
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