Quantcast
Channel: Objective Development Forums
Viewing all articles
Browse latest Browse all 4524

Re: Launch an iTerm profile

$
0
0
I think you are right...there are no command line options to select a profile, so you'd need to AppleScript it...

But the script can be pretty simple. I think this works:

tell application "iTerm"
   activate
end tell

tell application "System Events"
   
   tell process "iTerm"
      click menu item "COPY" of menu "Profiles" of menu bar 1
   end tell
   
end tell


Replacing COPY with the name of the profile you want to use. YMMV!

Viewing all articles
Browse latest Browse all 4524

Trending Articles