Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/osascript
- set terminalRunning to true
- if application "Terminal" is not running then
- set terminalRunning to false
- end if
- tell application "Terminal"
- if terminalRunning = false then
- delay 0.1
- tell application "Terminal" to close window 1
- end if
- do script ""
- activate
- end tell
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement