Well, the header kind of says it all.
How do I, in a Photoshop script, get the name of the operating system?
I need it to determine the syntax for the save path of the files.
Well, the header kind of says it all.
How do I, in a Photoshop script, get the name of the operating system?
I need it to determine the syntax for the save path of the files.
3
Answers
The app.systemInformation property returns a string which includes the OS, among other system properties.
You can do something like:
This is what I use to determine the os:
It works for me as my users are only using one of those two operating systems.
Since you need to determine the syntax for the save path of the files, the name of the file system is possibly the most appropriate:
Information about
File.fs
and$.os
can be found in the document JavaScript Tools Guide (p. 48 and 218 respectively).