【问题标题】:automator applescript if then actionautomator applescript if then action
【发布时间】:2011-12-28 21:12:43
【问题描述】:

在 Automator 中,你能不能像这样写一个Run Applescript

if

然后是一个动作,然后是这样的Run Applescript

end if

这可能吗?这是一个例子:

是的,我知道你可以让它退出 Applescript 中的应用程序,我不需要通过操作来执行此操作,但这只是一个示例。

【问题讨论】:

    标签: if-statement applescript automator


    【解决方案1】:

    否 - 每个 Run AppleScript 操作(实际上是任何操作)都是一个单独的实例,因此您需要在同一个脚本中执行您的操作。 Automator 是可编写脚本的,因此您可以执行诸如启用/禁用操作之类的操作(我没有尝试过,但操作的 enabled 属性似乎是可设置的)。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2023-03-18
      • 2011-01-23
      • 2013-10-12
      • 2021-08-22
      • 2015-01-12
      • 1970-01-01
      相关资源
      最近更新 更多