macos

package
v0.13.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 16, 2026 License: MIT Imports: 4 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

func OpenTab(workDir, command string) error

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL