2011-11-15 12 views

答えて

3

私は、Automatorのアプリケーション以内にそれを行う方法を認識していないんだけど、これを試してみる - スクリプト次の例では、それ以下のアクションのEnabledプロパティを切り替えますワークフロー。

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がうまく機能します。

+0

名前でオートメーションアクションを参照するにはどうすればよいですか? 私は試してみました:フロントワークフローのAutomatorアクション名 "New Text File"を有効にする – Noah

関連する問題