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.
|
In OS X, how do I set up an AppleScript to
I had something like this before for regular Terminal, but I can't even find the scripting guide for iTerm2.
| |||||
feedback
|
|
Daniel's solution somehow opens a new Window – also, the Also, you have to use
in order to get a new tab. The following does what you asked for:
| |||||||
feedback
|
|
Not on a Mac right now, so it might not work 100% (adapted this answer of mine).
You can probably concatenate the commands to
| |||
|
feedback
|