Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Check if iTerm is running already
- set isRunning to false
- tell application "System Events"
- if (get name of every application process) contains "iTerm2" then
- set isRunning to true
- end if
- end tell
- -- Create new Terminal window
- tell application "iTerm"
- if isRunning then
- create window with default profile
- else
- activate
- end if
- end tell
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement