Owning Palette: Libraries & Executables VIs and Functions
Requires: Base Development System (macOS)
Executes AppleScript code to communicate with external macOS applications from LabVIEW.
AppleScript is a scripting language that enables you to control macOS applications as well as different parts of the OS. Use the Run AppleScript Code VI to request actions or return information from macOS applications external to LabVIEW using AppleScript code. For example, you can use this VI to communicate with Finder to set window settings or export data to a Microsoft Excel file.
Add to the block diagram | Find on the palette |
input string specifies the AppleScript code you want to use to communicate with external macOS applications. Refer to the AppleScript website for more information about the AppleScript language. If you input an invalid code string, LabVIEW returns an error. | |
wait until completion? specifies whether you want to wait until the AppleScript code finishes executing before the VI finishes executing. If you specify TRUE, Results and Compile & Runtime Errors are available when the command finishes running. If you specify FALSE, the command runs in the background and the input and output of the command line are not available. The default is TRUE. | |
error in describes error conditions that occur before this node runs. This input provides standard error in functionality. | |
Results returns the results from running the AppleScript if wait until completion? is TRUE. If you choose to run the AppleScript code in the background by specifying FALSE in wait until completion?, Results returns an empty string. | |
Compile & Runtime Errors returns errors that occurred while compiling and running the AppleScript code if wait until completion? is TRUE. If you choose to run the AppleScript code in the background by specifying FALSE in wait until completion?, Compile & Runtime Errors returns an empty string. | |
error out contains error information. This output provides standard error out functionality. |