Skip navigation
Ghostty 1.3 is going to have a preview of AppleScript support.
0:00 / 2:42

Ghostty 1.3 is going to have a preview of AppleScript support.

Mitchell Hashimoto

@mitchellh233K followers

Visit on X
1,505 likesDownloadOriginal post

182,356 views

Ghostty 1.3 is going to have a preview of AppleScript support. All windows, tabs, splits, terminals are exposed via AppleScript. For macOS users, this satisfies some of the most common requests: broadcast commands, automatic layouts, jump to working directory, etc. PR here: I also think this is an incredibly important feature to ship early/now so agentic tools like Claude and Codex can take advantage of a scriptable Ghostty on macOS. I still plan on a generic cross-platform scripting/plugin API (two separate things), but integrating with native features like AppleScript is entirely in scope of the Ghostty mission and like our Shortcuts integration it importantly lets you connect multiple sources since AppleScript can control multiple applications from one script. Note I normally don't ship features so down to the wire with a release, but this one is very isolated in its impact and I'm going to explicit document it in the release notes and website as a preview since I fully expect we're going to iterate a lot on the objects and commands exposed. From a security perspective, Apple already prompts for permission to control different applications so we're covered, but there is a master kill switch you can put in the config, too.

38 Comments

Comments from the original post on X (Twitter)

  • Aleksey Skryl's profile picture

    @ssskryl

    @DanielleFong Server mode (like tmux) would be 🔥

    12 likes

  • nick's profile picture

    @thecsguy

    everyone's talking about ai agents while mitchell is out here giving us the ability to script our terminal layouts with a language from 1993. nature is healing

    8 likes

  • Sadi Moodi's profile picture

    @MoodiSadi

    AppleScript for terminal control is smart. For agentic workflows, you get: 1) cross-app automation (Finder + Ghostty), 2) native macOS permission model, 3) existing developer tooling. The kill-switch in config is crucial for enterprise adoption.

    2 likes

  • Ranmdy's profile picture

    @Ranmdy_

    lowkey wild how "agentic tools like Claude and Codex" became the selling point for AppleScript integration. Pretty sure terminal power users were automating workflows before AI agents were even a thing. The feature sounds solid but the AI angle feels forced.

    1 like

  • Mitchell Hashimoto's profile picture

    @mitchellh

    I gave plenty of examples and talked about agentic stuff last. Are you just rage baiting for no reason?

    5 likes

  • Ranmdy's profile picture

    @Ranmdy_

    Fair, you literally led with broadcast commands and layouts I tunneled on the agentic bit. My bad. The AppleScript integration actually looks really clean though. Shipping it as a preview is smart too, gives you room to reshape the object model before people start building on top of it. Out of curiosity is the scripting dictionary closer to iTerm2's approach or are you going more minimal for now?

  • Nikhil Sharma's profile picture

    @ImNikhil117

    the broadcast commands bit alone is massive. entire teams running the same deploy command across 10 terminals simultaneously.

    1 like

  • Alireza Bashiri's profile picture

    @al3rez

    just expose an api and the people can submit prs for linux/windows

    1 like

  • Lira's profile picture

    @Lira_tron

    @link_arzu esto da a un buen de cosas de automatización a ti q t gusta hahaha

    1 like

  • Heather's profile picture

    @pulse_petal

    Your keyboard sounds amazing. What is it?

    1 like

  • Uriah's profile picture

    @codeitlikemiley

    this is great thanks for your work: Im thinking how to add it on my repo: as i pretty much use ghostty on a day to day basis after i ditch warp building this repo :)

    1 like

  • HashAndHustle's profile picture

    @techbro_1a

    @grok what could be the use cases here ?

  • Vikram's profile picture

    @WhinerVikram

    Nice, this is very cool!

  • VikingBoer's profile picture

    @TK512

    Glad to see AppleScript being used, it's very powerful. And also happy you're not using the JS one. Thinking of ideas now.

  • felix negentropy. weallareeuropean's profile picture

    @Hft_freedom

    great work

  • Anurag Vishwakarma's profile picture

    @anurag_30

    I just only need search feature in ghostty.

  • Arthur's profile picture

    @arthur_gif

    Nice

  • Tiger Abrodi's profile picture

    @TAbrodi

    👀

  • sab.dev's profile picture

    @sbkchaudry_dev

    What a G 🙏

  • Phil Cohen's profile picture

    @philltopia

    Thank you!! This will be awesome for accessibility. Apple Events are noticeably faster than shortcuts