Saving operation get cancelled when Save in background is checked.
When Save in the background checkbox is checked, saving the document using the script, gives an error operation was cancelled and the automation process stop. But if uncheck this setting everything works fine. This happens when we show our custom progress bar dialog. So I think progress bar dialog is interfering with the process of saving the document in the background. Could you please look into this issue and see what can be done for this at your end?
Hi Charu, thanks for the feedback. Currently, Background Save is not supported via scripts. That is why you are getting an error. Enabling scripting support is in our backlog.
Jean-Claude Tremblay commented
This behaviour need to change.
This has cost me so much time and embarrassment.
I'd like to give a more precise description of the problem:
I noticed that the feature works as expected when you launch "Save as" (eg. the first time you save a file) and then repeat this action before this saving process has finished. A pop-up appears that asks you whether to go on saving or to interrupt the process > see (Italian) screenshot attached.
The problem appears as soon as you save a modified file by simply using "Save" (from the menu or by keyboard shortcut) which is the most common action during a work day. Doing so the background saving wheel immediately disappears, the Save as window pops up and you are pretty close to lose a lot of your work when saving a flattened PDF as described by @anonimo.
How to recreate the bug:
When working on a large file (that takes some time to save), save the document (CTRL-S). While the document is in the process of saving, SHIFT-CTRL-S (Save as) a different filename. The initial save that was in progress will be canceled and only the save-as will complete.
JK St commented
'Save as' in background is not working properly. Clicking "Save as..." while the system is saving something in background - cancels that saving (in background) without any notice. The recently cilicked 'Save as..." should be automatically placed in queue - like in photoshop. It's a distaster it's still not solved...
Mike Clements commented
In the latest Illustrator, v 25.2 on Mac, pressing Save As now cancels any Save action that is in progress... Previous versions waited until save was complete to initiate the Save As, and the last few updates have given an Alert and asked what I wanted to do... Please fix this, as this has caused me to save multiple project files as PDFs, but without the latest revisions being saved in the AI file (because pressing Save As stopped the save I had started).
While I can adjust how I save files. THIS IS A HUGE PROBLEM, AND VERY COUNTER-INTUITIVE.
If I "Save" a document with Background Saving turned on, and hit "Save As" before the process has been completed, it will stop the current "Save process and not save the file.
The problem that really needs to be fixed is there is No Warning (Message Box) that the Background Saving has been aborted and that document has not been saved.
2019 iMac - Catalina 10.15.7
This issue can be replicated on Illustrator 2020 & 2021 or 24.3 & 25.0 or whatever we are calling them now.
Yes, this! Just wrote the same exact bug yesterday, didn't notice this one.
I'll give you an example:
I work with a slightly heavy multi-artboard illustrator file.
After making the neccessary design changes, I press Ctrl+S to save the .ai file.
Then I wait for a second until it starts showing the percentage of the saving progress in the "filename tab". When the percentage shows up, it means that I can -meanwhile- press Ctrl+Shift+S to also save the file as a .PDF. Everything seems fine so far - the dialogue shows up, I rename the file, press Save, select my PDF saving preferences (with Preserve AI editing ability unchecked...), and hit Save PDF. Then close the file (no dialogue pops up).
Now, when I look in the folder, I see that that the .PDF file is there and it's saved as needed, BUT, the .AI file has NOT been saved (updated)! What I'm left with is an old version of the .AI and a flattened .PDF, so I hope this issue will be sorted... This nice multitasking feature used to work properly before the update.
OS: Windows 10 Pro
AI: Illustrator Version: 25.0
While background saving a resource file (e.g. in .ai format) one needs to be very careful to not start "Save as" processes (e.g. PDF) before background saving process has finished otherwise il will be interrupted without any hint. This will lead to lose work in your resource file due to switching file format.
It would be much better like Photoshop does: background saving with alert when trying to "Save as"