charliesneath How can I have a menu item that opens a link in the user's web browser? Specifically, this is just a link to the README in the plugin's Github repo from the plugin menu.
markh var viewDocumentation = function() { NSWorkspace.sharedWorkspace().openURL(NSURL.URLWithString("http://some-website.com")); } And then add the above function as a handler of a command in your manifest.json.
ptewari In case you want to open an external link in the default browser from within the plugin then checkout https://github.com/skpm/sketch-module-web-view/blob/master/docs/opening-links-in-browser.md
Victorien Hello, thanks for your answer. I don't get how I can import NSWorkspace. I am trying to do import {NSWorkspace} from "sketch", but it doesn't work.
rodionovd Victorien I believe NSWorkspace class is available by default and doesn't require an explicit import. Does the code above work for you? What kind of error do you see if it doesn't?