This is a simple AppleScript to use Ghostty in Alfred. It will open the Promt from Alfred in an existing Ghostty window or create a new one if there is none.
Note
To install the script, you need to copy the content of the custom.applescript file and paste it into the alfred terminal custom code text area.
You can find it in the Alfred Preferences under the "Features" tab and then "Terminal", now you need to change the Application to "Custom" and paste the content of the file into the text area.