UiPath Documentation
activities
latest
false
生産性を高めるアクティビティ
重要 :
このコンテンツの一部は機械翻訳によって処理されており、完全な翻訳を保証するものではありません。 新しいコンテンツの翻訳は、およそ 1 ~ 2 週間で公開されます。

AppleScript を呼び出し

Apple Script を呼び出してその出力を返す [Apple Script を呼び出し] アクティビティ。

UiPath.AppleScripting.Activities.InvokeAppleScript

説明​

Apple スクリプトを呼び出して、その出力を返します。

このアクティビティは、macOS システム上で AppleScript コードを実行し、その出力を返します。スクリプトは、インライン コンテンツとして、またはスクリプト ファイルへのファイル パスを指定して指定できます。このアクティビティではタイムアウトの設定がサポートされており、スクリプトが失敗した場合 (つまり、ゼロ以外のコードで終了した場合) に例外をスローするオプションがあります。AppleScript は macOS 上の強力なスクリプト言語であり、タスクを自動化し、アプリケーションを制御できます。

注:

このパッケージは macOS システムでのみ動作します。

プロジェクトの対応 OS​

Windows | クロスプラットフォーム

構成​

アクティビティとそのプロパティは、次のように設定できます。

  • Path to script file - The path of the file which contains the AppleScript to execute.
    • Use content - Select this option to switch to Script content, where you can provide the content of the AppleScript to execute.
  • Script content - The content of the AppleScript to execute.
    • Use local file - Select this option to switch back to Path to script file.
  • Arguments - An ordered list of strings passed as positional arguments to the script's on run argv handler. Every value arrives as AppleScript text; coerce to numbers or booleans inside the script if needed.
注:
  • The activity supports only the .scpt and .scptd file extensions, and the script (inline content or file) must be 1 MB or smaller.
  • プラス メニューのオプションについて詳しくは、「オートメーションを設計する」をご覧ください。

プロパティ パネル​

  • 失敗時にスロー - True または False を選択します。既定では、このオプションは True に設定されています。[ True] に設定すると、スクリプトの終了コードが 0でない場合に例外がスローされます。例外に含まれるメッセージは、標準エラーストリームの内容になります。
  • タイムアウト (ミリ秒) - エラーを発生させる前にアクティビティの実行を待機する時間 (ミリ秒) を指定します。空白のままにすると、無期限に待機します。
  • 結果 - スクリプトの呼び出しの結果です。
  • 説明​
  • プロジェクトの対応 OS​
  • 構成​
  • プロパティ パネル​

このページは役に立ちましたか?

接続

ヘルプ リソース サポート

学習する UiPath アカデミー

質問する UiPath フォーラム

最新情報を取得