public executeAction(action as String) as Void:
Executes an action exposed by the menu bar.
action
window.executeAction("save")