Try One of macOS 27’s Best Features Right Now
Try One of macOS 27’s Best Features Right Now
立即体验 macOS 27 最棒的功能之一
Buried deep inside everything announced at WWDC this year was something I, an Apple Shortcuts enthusiast, can’t wait to try: the ability to make Apple Shortcuts using generative artificial intelligence. In macOS 27, you’ll be able to just type what you want a shortcut to do, and the app will build it.
在今年 WWDC 发布的所有内容中,隐藏着一个让我这个 Apple Shortcuts(快捷指令)爱好者迫不及待想要尝试的功能:利用生成式人工智能创建快捷指令。在 macOS 27 中,你只需输入你想要快捷指令执行的操作,应用程序就会自动为你构建它。
Anyone who builds shortcuts regularly knows the process of doing so can be tedious, even if the end results save you a lot of time. So I’m excited about the idea of describing what you want in plain language and ending up with a working shortcut. Even if it doesn’t work perfectly (let’s face it, AI-built things rarely do), it’s a starting point that you can tweak to meet your needs.
任何经常制作快捷指令的人都知道,这个过程可能非常繁琐,尽管最终结果确实能为你节省大量时间。因此,我非常期待能够用简单的语言描述需求,并直接得到一个可用的快捷指令。即使它不能完美运行(说实话,AI 生成的东西很少能做到完美),它也提供了一个你可以根据需要进行微调的起点。
The only downside: This feature doesn’t launch until autumn, when version 27 of Apple’s operating systems come out.
唯一的缺点是:该功能要到今年秋季 Apple 操作系统版本 27 发布时才会上线。
What if you want to try it now? It turns out that Federico Viticci, who founded and runs the fantastic blog MacStories, also couldn’t wait—so much so that he went and built his own version. It’s called Shortcuts Playground, which runs in either Claude Code or OpenAI’s Codex. (OpenAI’s Codex is free for now; Claude Code requires at least a Pro plan, which starts at $20 per month.)
如果你现在就想尝试怎么办?事实证明,创办并运营出色博客 MacStories 的 Federico Viticci 也等不及了——他甚至自己动手构建了一个版本。它被称为 Shortcuts Playground,可以在 Claude Code 或 OpenAI 的 Codex 中运行。(OpenAI 的 Codex 目前免费;Claude Code 则至少需要 Pro 订阅计划,起价为每月 20 美元。)
To get started you first need to install the Shortcuts Playground agent; there are instructions on GitHub. Basically you will need to copy and paste a command into the Terminal. (I am not going to include the command here in case it changes.)
要开始使用,你首先需要安装 Shortcuts Playground 代理;GitHub 上有相关说明。基本上,你需要将一条命令复制并粘贴到终端(Terminal)中。(为了防止命令变动,我在此不列出具体命令。)
I tested this in Claude Code, but the tool works the same way in Codex. Once you’ve installed Shortcuts Playground you can trigger it by typing / followed by “shortcuts.” You’ll see a list of options pop up:
我在 Claude Code 中进行了测试,但该工具在 Codex 中的工作方式相同。安装 Shortcuts Playground 后,你可以通过输入 / 后跟 shortcuts 来触发它。你会看到弹出一系列选项:
If you’re starting from scratch, I recommend using the shortcuts-playground:build option, followed by a rough description of what you want the shortcut to do. (The other option, shortcuts-playground:remix, is for making changes to existing shortcuts.)
如果你是从零开始,我建议使用 shortcuts-playground:build 选项,然后大致描述你希望快捷指令执行的操作。(另一个选项 shortcuts-playground:remix 则用于修改现有的快捷指令。)
The agent will get to work building a shortcut for you. Sometimes it will stop to ask you for more information, or to explain what is and isn’t possible to build in Apple Shortcuts.
代理将开始为你构建快捷指令。有时它会停下来询问更多信息,或者解释在 Apple Shortcuts 中哪些操作是可以实现的,哪些是不可能的。
While exploring this tool, I asked for a shortcut that compiled today’s weather, my calendar appointments, and my to-do list for the day, then read the entire thing out loud. The agent happily went to work.
在探索该工具时,我要求它创建一个快捷指令,汇总当天的天气、日历预约和当天的待办事项清单,然后大声朗读出来。代理很乐意地开始工作了。
When everything is done, the agent builds a .shortcut file and tells me where to find it. It also gave a few details, offering to tweak things if necessary. I went ahead and found the .shortcut file and opened it.
一切完成后,代理会生成一个 .shortcut 文件并告知我存放位置。它还提供了一些细节,并表示如有必要可以进行调整。我随后找到了该文件并将其打开。
A pop-up offers to add the shortcut. Click it, then open the Shortcuts app, and you’ll find your new shortcut waiting for you. There are generally comments in the shortcut explaining to you what each step does.
弹窗会提示添加该快捷指令。点击它,然后打开“快捷指令”应用,你就会发现新的快捷指令已经在那里等着你了。快捷指令中通常会有注释,解释每个步骤的作用。
My Morning Briefing shortcut worked well, though I had to tweak it to show only today’s tasks (not tasks with no due dates). Even with that imperfection, I had a working shortcut a lot faster than I would have by building it myself. This shortcut included looping, a way of processing multiple items that’s necessary to include but annoying to set up.
我的“早间简报”快捷指令运行良好,尽管我不得不对其进行微调,使其只显示今天的任务(而不是那些没有截止日期的任务)。即使有这个小瑕疵,我也比自己手动构建快捷指令快得多。这个快捷指令包含了循环功能,这是一种处理多个项目的必要方式,但手动设置起来非常麻烦。
It’s not perfect. From what I can tell this tool doesn’t know about actions offered by apps I’ve installed, only the actions provided by the OS. That shortcoming aside, this is a very quick way to build a shortcut (or at least, get to a starting point).
它并不完美。据我所知,该工具无法识别我已安装的第三方应用所提供的操作,只能识别操作系统本身提供的操作。撇开这个缺点不谈,这确实是一种构建快捷指令(或者至少是获得一个起点)的非常快捷的方法。
So this is going to be how I build shortcuts now—at least until Apple launches its official tool in a few months. I can’t wait to see how it compares, and to share my thoughts with you here.
这就是我今后构建快捷指令的方式——至少在几个月后 Apple 发布官方工具之前是这样。我迫不及待地想看看两者有何不同,并在这里与大家分享我的想法。