According to the documentation at
Getting Started—UXP for Adobe Photoshop
(‘os’).platform(); will return
“darwin” for macOS and “windows” for, well, Windows.
In my testing, win32 is returned for windows. Am I missing something
According to the documentation at
Getting Started—UXP for Adobe Photoshop
(‘os’).platform(); will return
“darwin” for macOS and “windows” for, well, Windows.
In my testing, win32 is returned for windows. Am I missing something
I’m just testing if it’s “Darwin” then it’s a Mac else it’s a PC
What if its Apple M1, then I think it returns “arm”
With os.arch()
you can get the architecture (x64, arm64).
os.platform()
always returns “darwin” for macOS.