UXP Shell and OS

The links to Shell and OS on this page are not working https://adobexdplatform.com/plugin-docs/reference/uxp/

I have two questions:

  • is there a way to detect user’s operating system (macOS, Windows)?
  • can “shell” open deep links in the OS (Terminal, Command Prompt)?

Maybe there’s an answer somewhere on the web, but I couldn’t find anything. With that I want to say we need better plugin docs with more examples, maybe even including known bugs and fixes that are scattered on the forum (e.g. Text inputs lose focus when panel is resized).

1 Like

Shell and OS should link to


which, in turn, answer your questions.

The os can get detected by using

require('os').platform === 'win10' // true on Windows

Links can only be https://, therefore, deep links opened with


won’t work. The only possibility would be to create a web page (link to it via https) which, in turn, redirects a user to such a custom deep link (“click here to open in […]”).

I agree :slightly_smiling_face:


Thank you @pklaschka, this is really helpful.

1 Like