Skip to main content
K24076904
Known Participant
July 2, 2019
Answered

Is it possible to save all files?

  • July 2, 2019
  • 3 replies
  • 822 views

Hi,

I have a question if it is possible to save/resave all open files using action? (or script)

Would be nice to save all open psd files in 1 click starting from specific one (or starting from active tab).

I found similar question for AI - but not sure it will work for PS.

Thanks!

This topic has been closed for replies.
Correct answer Kukurykus

cool! thanks!

any idea how to save active tab first, and only after the rest of files?
(I have 1 main psd file linked to couple others)

or maybe it is possible to specify the file to be saved first by name or some id?


Just add in front of above code this line:

activeDocument.save();

3 replies

Participant
October 4, 2023

New to photo shop confused and frustrated, just forget it, thanks anyway.

Stephen Marsh
Community Expert
Community Expert
October 4, 2023
quote

New to photo shop confused and frustrated, just forget it, thanks anyway.


By @RODNEY32699398t4ox

 

You have landed on a topic where a scripting solution was discussed, which doesn't have any explanation for new users.

 

Don't be discouraged.

 

You can do this by combining two forms of automation which are more accessible than scripts.

 

1) Create an action, use the action panel menu item to "insert menu item" and select File > Save. Stop recording the action.

 

2) Next, use the File > Automate > Batch command to run this action set and action on all open documents:

 

 

If you are interested in scripts, then you can start with these links:

 

https://helpx.adobe.com/photoshop/using/scripting.html

 

https://prepression.blogspot.com/2017/11/downloading-and-installing-adobe-scripts.html

K24076904
K24076904Author
Known Participant
July 2, 2019

Thanks a lot Kukurykus!!!

Works like a charm!

Kukurykus
Legend
July 2, 2019

Not exactly that you wanted, but maybe you had that in mind:

while(documents.length) (aD = activeDocument).save(), aD.close()

K24076904
K24076904Author
Known Participant
July 2, 2019

Hi Kukurykus,

I tried this one very similar

// SaveAll.jsx

#target photoshop

while (app.documents.length > 0)

{

var doc = app.activeDocument;

doc.save();

doc.close();

}

but it also closes all open files

if I remove row #07 - then it looks like Photoshop starts saving files and cannot stop...

Kukurykus
Legend
July 2, 2019

for(i = 0; i < (doc = documents).length;) (activeDocument = doc[i++]).save()