activities
latest
false
重要 :
请注意,此内容已使用机器翻译进行了部分本地化。 新发布内容的本地化可能需要 1-2 周的时间才能完成。
UiPath logo, featuring letters U and I in white

生产力活动

上次更新日期 2025年12月9日

Invoke Apple Script

UiPath.AppleScripting.Activities.InvokeAppleScript

Invokes an Apple script and returns its output.

This activity executes AppleScript code on macOS systems and returns the output. You can provide the script either as inline content or by specifying a file path to a script file. The activity supports timeout configuration and has an option to throw exceptions when the script fails, that is, exits with a non-zero code. AppleScript is a powerful scripting language on macOS that can automate tasks and control applications.

Note: This package only runs on macOS systems.

项目兼容性

Windows | 跨平台

配置

You can configure the activity and its properties as follows:

  • Path to script file - The path of the file which contains the Apple script to execute.
    • Use content - Select this option to switch the initial field to Script content, where you can provide the content of the Apple script to execute.
    • Use Local File - Select this option to switch back to the initial field. This option is visible only after you select the previous option Use a File Resource.
备注:
  • The activity supports only the .scpt and .scptd file extensions.
  • For more details on the plus menu options, check Designing automations.

属性

  • Throw on fail - Select True or False. By default, this option is set to True. If set to True, the activity throws an exception when the exit code of the script is not 0. The message contained in the exception will be the content of the standard error stream.

Result - The result of the script invocation.

  • 项目兼容性
  • 配置

此页面有帮助吗?

获取您需要的帮助
了解 RPA - 自动化课程
UiPath Community 论坛
Uipath Logo
信任与安全
© 2005-2025 UiPath。保留所有权利。