How do I set up an AppleScript to open a new iTerm2 tab and change the directory?
Fresh3 days ago
Mar 15, 202621167 viewsConfidence Score0%
0%
Problem
In OS X, how do I set up an AppleScript to open a new iTerm2 tab change to a directory clear the console echo the current directory I had something like this before for regular Terminal, but I can't even find the scripting guide for iTerm2.
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: How do I set up an AppleScript to open a new iTerm2 tab and change the directory?
Low Risk
The following does almost what you asked for, but it opens a new window. (This was based on the new iTerm documentation and the below answer, which you should upvote!)
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix