Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions docs/features/applescript.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,24 @@ tell application "Ghostty"
end tell
```

### Set Tab Titles

Use `perform action` with `set_tab_title` to label tabs from a script.

An example creating a new tab and setting title:

```AppleScript
tell application "Ghostty"
set win to front window
set cfg to new surface configuration

set t1 to new tab in win with configuration cfg
perform action "set_tab_title:Editor" on focused terminal of t1
input text "nvim .\n" to focused terminal of t1

end tell
```

### Jump to a Terminal by Working Directory

```AppleScript
Expand Down