Advertisement
Nico-Salamone

Open Terminal

May 6th, 2020
3,587
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/usr/bin/osascript
  2.  
  3. set terminalRunning to true
  4. if application "Terminal" is not running then
  5.     set terminalRunning to false
  6. end if
  7.  
  8. tell application "Terminal"
  9.     if terminalRunning = false then
  10.         delay 0.1
  11.         tell application "Terminal" to close window 1
  12.     end if
  13.    
  14.     do script ""
  15.     activate
  16. end tell
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement