Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

applescript open new terminal tab

tell application "Terminal"
    activate
    do script "ping google.com" in front window
    my makeTab()
    do script "ping yahoo.com" in front window
    my makeTab()
    do script "ping msn.com" in front window
end tell

on makeTab()
    tell application "System Events" to keystroke "t" using {command down}
    delay 0.2
end makeTab
Source by apple.stackexchange.com #
 
PREVIOUS NEXT
Tagged: #applescript #open #terminal #tab
ADD COMMENT
Topic
Name
5+8 =