Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Saving all files in workspace

New Here ,
Apr 03, 2008 Apr 03, 2008
Is there a way to automatically save all the files in the workspace?

I have a bunch of files that have not been saved. I have an action that will save, and then close the currently selected files. But how can I get it to go on and save the rest of the files in the workspace?

If one file is saved and then closed, then some next file is opened. Isn't that a photoshop event that could trigger an action via the script events manager? How does that work?

What would work? What would automatically save each file in the workspace?

Thanks for your help.

-Katherine
TOPICS
Actions and scripting
411
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe
New Here ,
Apr 03, 2008 Apr 03, 2008
Since you are posting this in a scripting group... Save (like File >
Save) and close each open document is pretty straight forward:

// SaveAll.jsx
#target photoshop

while (app.documents.length > 0)
{
var doc = app.activeDocument;
doc.save();
doc.close();
}


Herb
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guru ,
Apr 03, 2008 Apr 03, 2008
LATEST
And if you don't want to use a script you can batch the save action you are using now. Just choose 'Opened Files' from the source dropdown list.

Mike
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines