Repository navigation
macOS: AppleScript interface for Ghostty Automations #10201
|
TL;DR: code is here https://github.com/kkilchrist/ghostty-applescript I can share a notarized binary (signed with my account) if anyone is unable to build but wants to test, but better to build yourself if possible. Problem:
As a workaround, many users report using system events scripting and key bindings (e.g., "focus on Ghostty" then "click File -> New Window" then paste my command). But this is hackish and gives limited true automation potential, especially to do anything other than "launch and forget" Ghostty already supports the App Intent framework, but as far as I can tell, this is not accessible from another application or script, without the user creating a Shortcut that can be invoked. I have another app I am working on which implements AppleScript (in my case, for Claude Code to navigate and control my markdown viewer which operates from within the AppStore sandbox). So, Claude Code and I wrapped the existing Ghostty App Intents with AppleScript, with the aim of implementing AppleScript (bindings/interfaces) for all exposed App Intents, and added a couple new aspects for ergonomics. Examples:
After I had substantially completed this work, I found @j-c-m 's earlier discussion here and PR. That implementation has not seen activity since October, and implemented a relatively limited number of controls. Apologies that I did not build on top of it.
Happy to make any changes as the community would like. Can also add features like zoom etc, although these are already accessible via applescript -> keybinding handlers Disclosures:
|
#11208