Copy link to clipboard
Copied
Hi,
I'm trying to find some list of common paths I can use inside my scripts
as far as I get
app.preferencesFolder --> Users/[Username]/AppData/Roaming/Adobe/Adobe Photoshop [version #]/Adobe Photoshop [version #] Settings
is there any similar way to get ?
Users/[Username]/AppData/Roaming/Adobe/Adobe Photoshop [version #]/Presets/Actions
and
C/Program Files/Adobe/Adobe Photoshop [version #]/Presets/Actions
Thanks!
Copy link to clipboard
Copied
better this one
as not all users have admin privileges
Users/[Username]/AppData/Roaming/Adobe/Adobe Photoshop [version #]/Presets/Actions
Copy link to clipboard
Copied
From the manual JavaScript-Tools-Guide-CC.pdf







I think you sould download the manual and read it. You can also test if what you develop as a files full path Path\FileName.ext exists
Copy link to clipboard
Copied
ok, thanks! ![]()
finally I decided to create custom folder in userdir
path="~/DDS_save/save_DDS_send.jsx"
Copy link to clipboard
Copied
decodeURI(path + '/Presets/Actions')
Copy link to clipboard
Copied
Hi Kukurykus
Thanks!
same solution for xml version?
yours example goes again to javascript, and Scripts folder is write protected for non-admin users ((
trying to find a solution for installing my script
Copy link to clipboard
Copied
If you are on Windows you can use VBscript to access Regisry to get currenctly assigned Photoshop path.
Copy link to clipboard
Copied
]
Kukurykus wrote
If you are on Windows you can use VBscript to access Regisry to get currenctly assigned Photoshop path.
While that may be correct it dose not mean that is the path of the Photoshop that your script is running in. I have 5 version of Photoshop installed on my system and I have both the 32Bit and 64bit CS6 version installed. There are 6 Photoshop.exe on my system. Most Windows registry keys for Photoshop point to the Current CC 2019 version not all. The Default Photoshop version is CC 2019 however any of the six Photoshop may be running and I link all Photoshop Script Folder to my Scripts Tree. It is very easy to get the running Photoshop Path as well as the running script path using javascript.

scriptPath= $.fileName.substr(0, $.fileName.lastIndexOf("/") + 1);
scriptName = $.fileName.substr($.fileName.lastIndexOf("/") + 1 ,);
alert("Running Photoshop = '" + app.path + "'\nScript Path = '" + scriptPath + "'\nScript File = '" + scriptName + "'");

Copy link to clipboard
Copied
The solution is of course for last installed Ps version so that someone usually wants to use. VBscript was an example as alternative for Javascript K2@ said does not want to use to have path in XML file (that can be created by VBscript too).
Copy link to clipboard
Copied
You could use BridgeTalk on Windows & Mac
$.writeln(BridgeTalk.getTargets("-199").join("\n"));
$.writeln("-------");
$.writeln(app.version);
$.writeln("-------");
$.writeln(BridgeTalk.getSpecifier ("photoshop"));
$.writeln("-------");
$.writeln(BridgeTalk.appVersion);
$.writeln("-------");
$.writeln(BridgeTalk.getAppPath("photoshop"));
$.writeln("-------");
$.writeln(BridgeTalk.getDisplayName("photoshop"));
$.writeln("-------");
$.writeln(BridgeTalk.getTargets( null, "en_GB" ).join("\n"));
$.writeln("-------");
Copy link to clipboard
Copied
Yes, that's good solution, but it needs Extendscript while in reply No. 3 the author doesn't want it if I understand right?
Copy link to clipboard
Copied
Sorry I was half asleep! now I will go back to sleep ![]()
Find more inspiration, events, and resources on the new Adobe Community
Explore Now