Properties:
document
selection
scriptPath
scriptURL
plugin
command
var onRun = function(context) {
var doc = context.document;
var name = doc.askForUserInput_initialValue('What is your name?', '');
};
var onRun = function(context) {
var doc = context.document;
doc.showMessage('Show message here');
}
var onRun = function() {
var app = NSApplication.sharedApplication();
app.displayDialog_withTitle('The operation is complete', 'We\'re done');
}