我有一个带有Run Applescript
动作的自动化工作流程。是否可以启用/禁用/删除我的另一个自动化操作Run Applescript
?有关详细信息,请参阅我之前的问题。
编辑:我已经开始赏金了。我正在寻找使我能够在 Automator 应用程序中执行此操作的问题。
我有一个带有Run Applescript
动作的自动化工作流程。是否可以启用/禁用/删除我的另一个自动化操作Run Applescript
?有关详细信息,请参阅我之前的问题。
编辑:我已经开始赏金了。我正在寻找使我能够在 Automator 应用程序中执行此操作的问题。
我不知道在 Automator应用程序中执行此操作的方法,但请尝试一下 - 以下示例工作流中的脚本会切换其后操作的启用属性。使用 3 个操作创建一个新工作流:
1) 一个请求文本操作以获得一些输入;
2) 一个运行 AppleScript动作来测试输入并做一些事情:
on run {input, parameters}
if (input as text) is "" then -- if no input then disable the following action
set currentAction to index of current action of front workflow -- the most recent completed action
tell Automator action index (currentAction + 2) of front workflow to set enabled to not enabled
end if
return input
end run
3) 一个请求确认操作来建立一个对话(或不建立一个对话)。
您可以使用其他操作属性,例如名称,但如果有多个相同的操作,则索引或 ID 效果更好。