This similar to the MacScript command except that it runs an AppleScript file located outside the sandboxed app.Ĭall AppleScriptTask as follows: Dim myScriptResult as String The new AppleScriptTask command executes an AppleScript script.
Therefore we discourage the use of this command.įor cases which require changing your existing code so it doesn’t use MacScript, you can use the AppleScriptTask command (see below). Due to restrictions of the sandbox, the MacScript command can no longer invoke other applications such as the Finder. The MacScript command, used to support inline Apple Scripts in Office for Mac 2011, is being deprecated.