Open link in browser


#1

Is there an easy way to open a link in browser when a plugin is done running? I tried this and no dice.

shell.openExternal(“http://google.com”)


#2

shell.openExternal("http://google.com"); should work.

Did you import it with

const {shell} = require("uxp");

before using your code snippet? Since it is a part of the uxp module, you need to import it first. After that, you can use it like this:

const {shell} = require("uxp");
shell.openExternal("http://google.com");

If not: That’s how you can do it (cf. https://adobexdplatform.com/plugin-docs/reference/uxp/class/Shell.html?h=openexternal).

If the problem persists, could you please share any errors that might get shown in the developer console here, so we can better help you? Thank you very much in advance :+1:

Hope this helps,
Best,
Pablo