Cannot close window, save dialog endless loop
I cannot close the current document window without an endless loop of "saved changes to document" (even though its currently saved). This is using the X in the corner to close window. If I say yes, save it, it remains open and won't close, even when I hit X again, endlessly (it just goes back to asking me if I want to save)
-
Andrew Southard commented
I always use a "save and close" action to save time suppessing all the pointless dialogue boxes to "OK". The "do you want to save" spiral of doom breaks this productivity.
The workaround is a little script suppressing the unsaved-state flag (the * in the file name) just before the close command.
Open a text file and insert:
// turn edited flag off
activeDocument.saved = true;Save the file as "noSaveDialogue.jsx" and put it in Illustrator's script folder (Windows in 2024 - C:\Program Files\Adobe\Adobe Illustrator 2024\Presets\en_GB\Scripts).
Now in my "save and close" action, after my "save" and immediately before "close" I insert a menu item call to the script (File > Scripts > noSaveDialoge), and the file closes properly.
-
Andrew Southard commented
I've had this before and managed to fix it, but I can't remember how (old age). Anyway, the issue has just returned, and I've worked out a workaround. I make small edits on up to hundreds of files daily, so I always save files using an action as it suppresses all the time-wasting dialogue boxes, saving me hours daily. The 'do you want to save' loop destroys my productivity. The workaround is a little script suppressing the unsaved-state flag just before the close command.
Open a text file. Insert:
// turn edited flag off
activeDocument.saved = true;Save the file as "noSaveDialogue.jsx" and put it in Illustrator's script folder (for me C:\Program Files\Adobe\Adobe Illustrator 2024\Presets\en_GB\Scripts).
Now in my save and close action, after my "save" and immediately before "close" I make a menu item call to the script (File > Scripts > noSaveDialoge), and the file closes properly.
-
Sam Purcell commented
After saving on illustrator, I still have an asterisk next to my files - meaning every time I close a file I get asked whether I want to save it or not. And even sometimes after clicking yes when closing a file it doesn't close the document and I have to click no.
This has been happening for a few months for me and definitely creates confusion.