Is there a way for a plugin to determine its context?

Hi, all. I’m wondering if there’s a way for a Photoshop UXP plugin to programmatically determine its context. Specifically, I’d like it to behave differently if it’s loaded through the UXP Developer Tool than if it’s installed.

Thanks,
Christian

Yes this is possible but I think it is part of private API so it could possibly change in future at any time without a warning.

Here is an example with usage: alchemist/Main.ts at dev3 · jardicc/alchemist · GitHub

1 Like