MK1
MK1.runScript()
Syntax
MK1.runScript(name, argument);
Parameters
name: A String containing the name of the script to run
argument: An optional String passed into the script and saved in the MK1_ARG variable
MK1.runTrigger()
Syntax
MK1.runTrigger(name, argument);
Parameters
name: A String containing the name of the trigger to activate
argument: An optional String passed into each script and saved in the MK1_ARG variable
MK1.setAlertOnError()
Syntax
MK1.setAlertOnError(alert);
Parameters
alert: A Boolean representing whether you want MK1 to shown an alert when an error occurs or not
MK1.version
Syntax
var version = MK1.version;
MK1.commit
Syntax
var commit = MK1.commit;
MK1.copyright
Syntax
var copyright = MK1.copyright;
MK1.scriptDataDir
Syntax
var dataDirectory = MK1.scriptDataDir;