Copy link to clipboard
Copied
I would like to create a test folder
in this path
photoshop presets/scripts
I have this piece of code but it's okay
I use photoshop cc2014 and 2017
//Folder to create on the desktop
var folder1 = Folder("~/Presets/Scripts/test");
//Check if it exist, if not create it.
if(!folder1.exists) folder1.create();
#target photoshop;
var SCRIPTS_FOLDER = decodeURI(app.path + '/' + localize("$$$/ScriptingSupport/InstalledScripts=Presets/Scripts"));
var folder1 = Folder(SCRIPTS_FOLDER +"/test");
//Check if it exist, if not create it.
if(!folder1.exists) folder1.create();
if(!folder1.exists) alert("You need to run this script as Administrator\nThe folder was NOT created");
Copy link to clipboard
Copied
#target photoshop;
var SCRIPTS_FOLDER = decodeURI(app.path + '/' + localize("$$$/ScriptingSupport/InstalledScripts=Presets/Scripts"));
var folder1 = Folder(SCRIPTS_FOLDER +"/test");
//Check if it exist, if not create it.
if(!folder1.exists) folder1.create();
if(!folder1.exists) alert("You need to run this script as Administrator\nThe folder was NOT created");
Copy link to clipboard
Copied
Make sure you change the permissions on the preset folder as your script may not be able to write to it.
Copy link to clipboard
Copied
https://forums.adobe.com/people/Chuck+Uebele ha scritto
Make sure you change the permissions on the preset folder as your script may not be able to write to it.
How should I do to set permissions on the set folder.
Copy link to clipboard
Copied