Last active
December 18, 2015 20:49
-
-
Save kubido/5843314 to your computer and use it in GitHub Desktop.
sometime using foreman in my local machine causing a terminal session reset... so I need to add more tab in terminal window.. and it's pain, I need to add tab.. type the command... wasting time.. so I use this automator script. :)
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
tell application "iTerm" | |
activate | |
-- buat window baru | |
set myterm to (make new terminal) | |
tell myterm | |
-- perintah2 yang akan di eksekusi tiap di setiap tab | |
set thelistOfCommands to {"cleopatra && rsd", "satutempat_api && rsd1", "mongoserver", "redis-server", "fake_start"} | |
- looping :) | |
repeat with theCurrentValue in thelistOfCommands | |
launch session "Default" | |
tell the last session | |
write text theCurrentValue | |
end tell | |
end repeat | |
end tell | |
end tell |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment