跳过导航
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

@mitchellh23万 位关注者

在 X 上查看
1,505 个赞下载原帖

182,356 次观看

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 条评论

评论来自 X (Twitter) 上的原帖

  • Aleksey Skryl 的头像

    @ssskryl

    @DanielleFong Server mode (like tmux) would be 🔥

    12 个赞

  • nick 的头像

    @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 个赞

  • Sadi Moodi 的头像

    @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 个赞

  • Ranmdy 的头像

    @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 个赞

  • Mitchell Hashimoto 的头像

    @mitchellh

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

    5 个赞

  • Ranmdy 的头像

    @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 的头像

    @ImNikhil117

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

    1 个赞

  • Alireza Bashiri 的头像

    @al3rez

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

    1 个赞

  • Lira 的头像

    @Lira_tron

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

    1 个赞

  • Heather 的头像

    @pulse_petal

    Your keyboard sounds amazing. What is it?

    1 个赞

  • Uriah 的头像

    @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 个赞

  • HashAndHustle 的头像

    @techbro_1a

    @grok what could be the use cases here ?

  • Vikram 的头像

    @WhinerVikram

    Nice, this is very cool!

  • VikingBoer 的头像

    @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 的头像

    @Hft_freedom

    great work

  • Anurag Vishwakarma 的头像

    @anurag_30

    I just only need search feature in ghostty.

  • Arthur 的头像

    @arthur_gif

    Nice

  • Tiger Abrodi 的头像

    @TAbrodi

    👀

  • sab.dev 的头像

    @sbkchaudry_dev

    What a G 🙏

  • Phil Cohen 的头像

    @philltopia

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