Hey!
Was wondering if someone could tell me if it’s possible to direct a user to an external website?
I’ve tried using shell.openExternal which doesn’t seem to work, and neither do webview elements.
If anyone has any info, would be greatly appreciated.
Thanks!
tomzag
2
Using shell.openExternal is the correct approach, but make sure this is declared in your manifest: https://developer.adobe.com/photoshop/uxp/2022/guides/uxp_guide/uxp-misc/manifest-v5/#network
tomzag
3
To clarify: my previous answer opens the specified URL in the default browser. If you want to display a page directly inside the panel using webview, you also need to add a manifest entry: https://developer.adobe.com/photoshop/uxp/2022/guides/uxp_guide/uxp-misc/manifest-v5/#webviews
Hi and thank you for your reply, just to clarify, are you certain shell.openExternal works in Premiere Pro too?
tomzag
5
Oh, I overlooked that it’s for Premiere Pro. But I don’t think it’s specific to the host app.
I think it might be disabled in Premiere. Appreciate your assistance all the same
[ yea the answer is a bit late - I just came across this today while integrating a webview component in my plugin ]
Using Webview directly works for me in premiere ( via the , see https://developer.adobe.com/photoshop/uxp/2022/uxp-api/reference-js/Global%20Members/HTML%20Elements/HTMLWebViewElement/)
Make sure to have the proper permissions in your manifest.
I just realized I may have misread your message.
… but it does not matter, as it seem to works as well with shell.openExternal() 
(OK maybe you do not need the variable “tada” since it seems this returns nothing)
And make sure you have the proper permission in your manifest:
So as of today (it may not have been true month ago), both “shell.open” and “webview” worked for me.
https://developer.adobe.com/premiere-pro/uxp/resources/recipes/launch-process
2 Likes