mklement0 / ttab

macOS and Linux CLI for opening a new terminal tab/window, optionally with a command to execute and/or display settings
283 stars 15 forks source link

Not working in macOS Ventura #47

Closed stx closed 1 year ago

stx commented 2 years ago

Quite frequently, in the macOS Ventura beta, ttab <command> will result in the command being run in the current window, and a new, empty tab being opened. Happens about half the time.

mklement0 commented 2 years ago

Sorry to hear it. Is this in Terminal.app or iTerm2.app, or both?

stx commented 2 years ago

Sorry to hear it. Is this in Terminal.app or iTerm2.app, or both?

Terminal.app

mklement0 commented 2 years ago

I don't have the beta, so I can't look into this. If you have further info to share, please do. Generally, note that AppleScript, which ttab relies on, is getting less and less love as time goes on.

JamesCouncilTN commented 1 year ago

I am experiencing the issue only when I attempt to apply a profile with my window (i.e. -s Homebrew). When I attempt to do that, it will open a new window in that profile, but return to the current window and perform the command. This worked flawlessly until I just updated my Mac to Ventura.

I love the tool by the way.

JamesCouncilTN commented 1 year ago

I just verified, thanks to your comments above, that iTerm2 does not suffer from the problem that I am facing in Terminal.

mklement0 commented 1 year ago

Thanks for the nice feedback, @JamesCouncilTN.

I have Ventura now and do see the problem, and only in Terminal.app, as you state:

To elaborate on @stx' finding, it seems that the various options (-t, working dir, startup command) are applied to the calling tab, not the newly created one.

Very odd. I do hope that they didn't break AppleScript support fundamentally; I have yet to take a closer look.

benmatselby commented 1 year ago

Hey folks. Just to drop a note to say that since I upgraded to 13.1 (22C65) it's consistently been working for me again. 😅

mklement0 commented 1 year ago

That's great news, thanks for sharing.

I can confirm that it's working again for me too.

I hope that goes for you too, @stx and @JamesCouncilTN.