TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: What are you using AppleScript for?

6 点作者 brunoc大约 6 年前
Considering how popular MacOS laptops are with developers, it&#x27;s curious to me that I haven&#x27;t come across much usage of AppleScript.<p>I use it to hook up various actions to the TouchBar with BetterTouchTool (https:&#x2F;&#x2F;folivora.ai&#x2F;) and have done some iTunes related scripts in the past to clean up or improve my library.<p>Are you doing anything useful &#x2F; fun with AppleScript?

5 条评论

feep大约 6 年前
I used it (well, Apple events, lower in the AppleScript stack) to generate piles of PDFs for from Quark for clients. Later book automation.<p>It was super handy for that sort of thing.<p>Sort of miss it, in a maybe-masochist kind of way.<p>Open tools to HTML are much nicer. And much less bizarre.<p>If anyone has some hairy InDesign or Quark or Illustrator thing they need automated, let me know.<p>...<p>...personally? lots of useful hotkeys.<p>But the shit keyboards finally drove me away. Linux on a XPS13 now.<p>I don&#x27;t miss AppleScript the language. But I do miss the fact that it was sorta built into everything by default.
评论 #19839582 未加载
hhas01大约 6 年前
Spent the last few years developing my own end-user automation language for rendering templated artworks in Adobe Illustrator. Not written in AppleScript, mind (that language is a junker), but driving AI via the same Apple event interface that AppleScript talks to. Insanely powerful stuff.<p>Currently reimplementing Carbon AEDescs in pure Swift, to see if a modern high-level IPC framework that works across macOS, iOS, <i>and</i> Marzipan apps is feasible. (<a href="https:&#x2F;&#x2F;twitter.com&#x2F;hhas02&#x2F;status&#x2F;1124763874413174786" rel="nofollow">https:&#x2F;&#x2F;twitter.com&#x2F;hhas02&#x2F;status&#x2F;1124763874413174786</a>)<p>Developers generally hate AppleScript because it deliberately misleads them into believing Apple event IPC is OOP, then drives them absolutely nuts by acting in all sorts of very un-OO ways. However, once you realize that it’s not OOP at all, but RPC plus simple first-class relational <i>queries</i>… oh the possibilities. Interesting times.
eeeeeeeeeeeee大约 6 年前
I use it to control some Spotify actions assigned to keyboard shortcuts via Alfred.
leemailll大约 6 年前
mostly use AppleScript with iTunes, such as rating songs playing with Alfred and various Doug&#x27;s AppleScript for itunes. Actually I learn AppleScript by tuning Doug&#x27;s script for my own needs.
KiDD大约 6 年前
Mostly just glue type stuff.