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, d or qt- t open new tab
- n open new window
- d open new split
- qt use the Quick Terminal
run_cmd: eithertrueorfalsetruepaste and run the commandfalsepaste the command, do not run it
reuse_tab: eithertrueorfalsetimeout_secondsshell_load_delayswitch_delay