0
Explorer
,
/t5/photoshop-ecosystem-discussions/load-action-set-via-script-not-working-in-cc2020/td-p/11047417
Apr 13, 2020
Apr 13, 2020
Copy link to clipboard
Copied
Hi, I would like some help here if it's possible. I have a script that loads a set of actions in Photoshop. Used to worked great in all version of Photoshop, except the latest. Here is the code:
function loadActions () {
app.load(new File(app.path+'/Presets/Actions/ActionsFolder/Actions.atn'));
};
loadActions ();
I repeat, this work in previous versions of Photoshop, but not in 2020. What changed?
TOPICS
Actions and scripting
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
1 Correct answer
Guide
,
Apr 14, 2020
Apr 14, 2020
Make sure the file exists....
function loadActions () {
var actionFile = new File(app.path+"/Presets/Actions/ActionsFolder/Actions.atn");
if(!actionFile.exists){
alert("Action file does not exist!");
return;
}else{ app.load(actionFile);}
};
loadActions ();
Explore related tutorials & articles
Guide
,
/t5/photoshop-ecosystem-discussions/load-action-set-via-script-not-working-in-cc2020/m-p/11047469#M322142
Apr 14, 2020
Apr 14, 2020
Copy link to clipboard
Copied
Nothing. Everything works.
Check if the file exists at the specified path.
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Community Expert
,
/t5/photoshop-ecosystem-discussions/load-action-set-via-script-not-working-in-cc2020/m-p/11047490#M322144
Apr 14, 2020
Apr 14, 2020
Copy link to clipboard
Copied
Just to make sure: Does the Folder »ActionsFolder« in the Folder »Actions« actually exist?
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Guide
,
/t5/photoshop-ecosystem-discussions/load-action-set-via-script-not-working-in-cc2020/m-p/11047501#M322146
Apr 14, 2020
Apr 14, 2020
Copy link to clipboard
Copied
Make sure the file exists....
function loadActions () {
var actionFile = new File(app.path+"/Presets/Actions/ActionsFolder/Actions.atn");
if(!actionFile.exists){
alert("Action file does not exist!");
return;
}else{ app.load(actionFile);}
};
loadActions ();
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
angular_uniqueness0D4D
AUTHOR
Explorer
,
/t5/photoshop-ecosystem-discussions/load-action-set-via-script-not-working-in-cc2020/m-p/11048262#M322213
Apr 14, 2020
Apr 14, 2020
Copy link to clipboard
Copied
The problem was the wrong slash. Thank you all for your help!!!
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
angular_uniqueness0D4D
AUTHOR
Explorer
,
LATEST
/t5/photoshop-ecosystem-discussions/load-action-set-via-script-not-working-in-cc2020/m-p/11048279#M322215
Apr 14, 2020
Apr 14, 2020
Copy link to clipboard
Copied
.
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more

