How can I open external links in UXP plugin in Photoshop?

How can I open External Links?

  • URI scheme “https” is not accepted
  • URI scheme “http” is not accepted

I know this can be done. I am seeing other engineers make it happen.


Every link is not valid. Even adobe’s example is not valid.

The errors:

The Example

The Code

async function openDiscordLink() {
	try{
		console.log("opening discord link")
		await shell.openExternal("https://www.adobe.com/", "develop message for the user consent dialog");
		// shell.openExternal('https://discord.gg/J6JFxqqgWZ/');
	} catch (e) {
		console.error(e);
	}

}

How can I open the external links?

A launchProcess permission must be written in manifest.json.

"requiredPermissions": {
  "launchProcess": {
    "schemes": ["https", "http"]
  }
}

There was a similar topic. It may be helpful.
http://forums.creativeclouddeveloper.com/t/html-link-does-not-work

1 Like