Save all modified files simultaneously
I would like to see the option for "Save All..." added to the file menu. There are many times when I am preflighting and prepping multiple open files related to the same project. Instead of cycling through to each file and saving, I would like to have the ability to save all modified files at the same time.
-
There is a native way, but it’s not exactly the thing you might want — File > Close All. It should ask you if you want to save, and you can apply this choice for every document. But since there is no way to quickly open several recent document, unless you drag-n-drop or launch them from the Explorer/Finder...
Another way would be yo use a script (and scripts are great to cover the assortment of the various tasks we have, you should not underestimate these).
Check this thread at forums and pick the solution that works for you: https://community.adobe.com/t5/illustrator-discussions/save-all-command/m-p/8783487 -
Stéphanie Noverraz commented
;-(
I see, just as I feared.
Thanks anyway. -
Looks legit, thanks. Yeah, I see.
The problem happens exactly because of 'This file has been modified outside of Illustrator. Do you want to continue?' message. There is no way I know of to workaround it :/And UV does not allow to share .js / .jsx script files as attachment for security reasons.
-
Stéphanie Noverraz commented
Sorry I couldn't attach the script file: here it is:
for (i=0; i<app.documents.length; i++)
{
var idoc = app.documents[i];
//alert("+"+idoc.path+"+");
if (idoc.path == "")
{
file = File.saveDialog ("Save file...");
idoc.saveAs (file);
}
else
{
//alert(idoc.name);
if (!idoc.saved)
{
idoc.save();
idoc.saved = true;
}
}
} -
Stéphanie Noverraz commented
Maybe it could be placed far from the Save command then… ;-)
Here's the script I'm using (I didn't write it, I found it on a forum years ago). If I remember correctly, it used to work fine in the background before my company put all our files on OneDrive / Sharepoint.
Now when I launch it, if I go to another application while it's saving, the Illustrator icon keeps jumping in my Dock and nothing is saved until I put Illustrator back into focus.
I don't know if it has anything to do with the fact that with OneDrive / Sharepoint, I now get the warning "This file has been modified outside of Illustrator. Do you want to continue?" almost every time I want to save a file (with Cmd-S).
Thanks for your help!
-
I get your point! But the danger of Save All is not it closes files (it shouldn’t), but because a user can accidentally use this instead of just save (the word 'All' is pretty small, and mis-clicks happen) — and won’t even know docs got saved. Then a crash — boom, unwanted changes get baked in, because Ai won’t restore saved docs.
So, when you are using the script — it’s quite a different operation, no way you can run it by chance, it is always intended (well, 99%, you can still launch a wrong script).
Tell me more about the problem with the focus when launching it though. It should not be that way if the script is written correctly.
-
Stéphanie Noverraz commented
And I already use the Save All script that I have all the time, really (even though it's annoying to have to keep Illustrator in focus).
So in the end all it would change is that I could do something else while the files are saving. :-)
-
Stéphanie Noverraz commented
I mean, the ideal Save All command would just save and not close the files, so you could still go back undo stuff if you change your mind.
-
While 'yes', obviously, I can also add that this would be just as dangerous a command as Revert, and would definitely need solid confirmation. So, also — no hotkey by default, please.
-
KhalidR commented
You have an excellent feature called Close All which gives you the option to save all whilst closing. It would be really, really useful to have a save all function too! This is especially useful when you have a few large slow saving/opening files, and you don't want to lose the changes you've made across all of them but want to carry on working without having to Close All, as mentioned at the start in order to save all.
-
Stéphanie Noverraz commented
I'm using a script to do that. The problem is, I need to keep Illustrator in focus for it to work, and it kinds of defeats the purpose…
I've tried 2 different scripts found on the web, but it's the same problem. I think it used to work fine before my company put us all on Microsoft OneDrive, though.