Copy link to clipboard
I was looking for a Scripts folder at `~/Library/Application Support/Adobe/Adobe Photoshop 2020/Presets`, but couldn't find it. Though the File > Scripts menu has scripts listed under it.
Photoshop Scripting support PDF does not give any hints about its location in Photoshop 2020 it only mentions about its location in `Photoshop CS5` 🤪
So where is this folder located in a Mac ?
Folder.appPackage.parent.toString() + "/Scripts/"
I didn't know about the code you used, so I personally would have used something like:
app.path + '/Presets/Scripts'
However one then has to deal with the %20 characters for word spaces:
app.path.toString().replace(/%20/g, ' ') + '/Presets/Scripts'
So the following would be better:
app.path.fsName + '/Presets/Scripts'
I think '%20' happens if you concatenate a '\r' character instead of a '\n' for the Unix based OSes