Search
 
SCRIPT & CODE EXAMPLE
 

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
Comment

open new terminal window with applescript

tell application "Terminal"
	do script "echo Hello World!"
end tell
Comment

PREVIOUS NEXT
Code Example
Shell :: clean journal 
Shell :: git empty commit 
Shell :: ssh copy folder from local to remote 
Shell :: Checking for an existing ssh key 
Shell :: check if service is running server 
Shell :: vim insert text at the the beginning of multiple lines 
Shell :: convert a WSL 1 distro to WSL 2 
Shell :: get additional parameters linux scripting 
Shell :: nmap vulnerabilty scan 
Shell :: install mongo compass 
Shell :: dump database docker 
Shell :: chmod: Unable to change file mode Operation not permitted 
Shell :: run mutiple sass files at once 
Shell :: adb screen record 
Shell :: bash shell remove recursive folder file rm dir 
Shell :: apt imagemagick 
Shell :: python pytorch 
Shell :: ssh server freebsd 
Shell :: subl command not found mac 
Shell :: how to run jar file mac 
Shell :: PDF Acrobat ubunut 
Shell :: wsl zsh get ip 
Shell :: install angular ubuntu 
Shell :: git lang 
Shell :: surge flutter web 
Shell :: remove docker machine 
Shell :: conda install python image library 
Shell :: fuser install linux 
Shell :: ERR_NO_CERTIFICATES: Encountered adb error: NoCertificates. ionic 
Shell :: difference between two files linux 
ADD CONTENT
Topic
Content
Source link
Name
3+2 =