MacScript 函数MacScript function

备注

此函数已被弃用, 因此不再受支持。This function has been deprecated, therefore it is no longer supported. 有关详细信息, 请参阅此堆栈溢出文章For more information, see this Stack Overflow article.

Executes an AppleScript script and returns a value returned by the script, if any.Executes an AppleScript script and returns a value returned by the script, if any.

语法Syntax

MacScript(脚本)MacScript(script)

script 参数为字符串表达式The script argument is a String expression. 字符串表达式**** 可以是一组 AppleScript 命令,也可以指定 AppleScript 脚本或脚本文件的名称。The String expression either can be a series of AppleScript commands or can specify the name of an AppleScript script or a script file.

备注Remarks

可以通过嵌入回车符 (Chr(13)) 来创建多行脚本。Multiline scripts can be created by embedding carriage-return characters (Chr(13)).

ThePath$ = Macscript("ChooseFile")

另请参阅See also

支持和反馈Support and feedback

有关于 Office VBA 或本文档的疑问或反馈?Have questions or feedback about Office VBA or this documentation? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.