Skip to content

Instantly share code, notes, and snippets.

@kubido
Last active December 18, 2015 20:49
Show Gist options
  • Save kubido/5843314 to your computer and use it in GitHub Desktop.
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. :)
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