macOS Shortcuts 如何调用 Run AppleScript with "input"?

2022-11-28 20:43:54 +08:00
 oIMOo

在 macOS Ventura 13.0.1^1 中,创建捷径可插入“Run AppleScript with 'input'” 动作。

请问在此动作中,如何调用该值?

比如:

在动作 2 中,会将( 2.)中的 my_input 识别为一个值,并报错 my_input 没有被定义 (The variable my_input is not defined)。

我尝试将 ( 2.) 中的 my_input 换为 input 或者 parameter ,同样提示没有被定义。


1 不确定其他系统版本是否支持

642 次点击
所在节点    macOS
2 条回复
Kanye
2022-11-28 21:16:23 +08:00
在跑 applescript 的 block 选择魔法变量
oIMOo
2022-11-28 22:05:57 +08:00
@Kanye 在动作 2 的 input 位置,可以选择魔法变量
但是在动作 2 中(也就是 AppleScript 的编写中),无法再选择魔法变量

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/898617

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX