Programmer's Guide > Interfaces > Application interface > run method
  
run method
Runs the macro or alias named name. The name is first looked up as a macro using the active document macro scope. If no such macro is found in any scope, then name is looked up as a command alias.
run(name)
Parameters
Stringname
The name of the macro or alias to execute.
Returns
void
Throws
AOMException
Raised if name is not recognized as a macro or alias or if an error occurs while executing the macro or alias.