AppleScript to integrate Ghostty with Alfred.
- Copy the script to your clipboard
- In Alfred Preferences, navigate to
Features > Terminal > Application → Custom
- Paste the script into the text box
- Optionally configure the script's properties
open_new
: either t, n or d- t open new tab
- n open new window
- d open new split
reuse_tab
: eithertrue
orfalse
timeout_seconds
shell_load_delay
switch_delay