markh Hi, i dont know how to add the function as a handler of a command, is this correct way? Its not working for me though
"handlers": {
"run": "onRun",
"actions": {
"Shutdown": "onShutdown",
"Externallink": "externalLink"
},
}
// function would be
var externalLink = function() {
NSWorkspace.sharedWorkspace().openURL(NSURL.URLWithString("http://some-website.com"));
}
I was just thinking of use
NSWorkspace.sharedWorkspace().openURL(NSURL.URLWithString("http://some-website.com"));
where i need to call the external link because my link is dynamic