Documentation
¶
Overview ¶
Package macos opens tabs in the macOS Terminal.app via AppleScript.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func OpenTab ¶
OpenTab opens a new Terminal.app tab (or a new window if none exist) and runs the given command.
Terminal has no AppleScript "create tab" command. Since High Sierra each tab is also its own AppleScript window (`count of tabs of front window` is 1), so `do script … in front window` reuses the current tab and `do script` with no target opens a real window. New tabs are created by clicking Shell → New Tab (same approach as ttab); if that fails, we open a window.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.