Moin!
On 9 Apr 2017, at 18:21, George Nachman wrote:
> I'm pretty sure Applescript was created as a joke by people who don't like
> us.
I'm not disagreeing on that.
> sessions are not a property of windows, but of tabs. Also, "number of" is
> some magic to do with arrays, not scalars (I think). Here's a working
> script:
>
> tell application "iTerm2"
> activate
> set myterm to (create window with default profile)
> tell first session of first tab of myterm
> set columns to 105
> set rows to 35
> tell current session of myterm
> write text "ssh myhost"
> write text "tmux attach -t overview || tmux new-session -s overview"
> end tell
> end tell
> end tell
That does the job. Thanks a lot as always for your superb support.
So long
-Ralf