misc.doScript

Syntax misc.doScript (appID, appScript)

Params appID is a value identifying the application to which this verb is addressed. It can be a string4 containing the application signature, a binary value obtained by calling sys.browseNetwork or a string containing a valid network address.

appScript is a string containing a script in a format understood by the target application.

Action Instructs the application identified by appID to run the script in appScript.

Returns The value returned by the application as the result of the script.

Examples misc.doScript ("*:Mac II:UserLand Frontier", "customBackup ()")
» true

This example instructs a copy of Frontier on the machine named "Mac II" on the network to run a script called "customBackup":

Platform Notes This verb is only implemented in the Mac OS version of Frontier.

Notes This verb is intended to be used only with applications that support the Miscellaneous Standards suite of Apple events. Typically, an application's verb table will include high-level verbs that correspond to all of the events that it supports, so

scripts should not have to call the misc verbs directly.

Instead of providing the text of a script, the appScript parameter can be an alias value identifying a file containing the script to be executed.

Discuss