Copy link to clipboard
Copied
I have a "concern" that I save files without wanting to do that, in a hassle etc. Is there an option that PS would always ask if I "really" want to save after I have pressed buttons on my keyboard for saving??
Copy link to clipboard
Copied
You could change the keyboard shortcut to run a Script that does that instead of saving right away.
Copy link to clipboard
Copied
You could have someone create a javascript to warn you prior to saving then use the Scripts Events Manager (File/Scripts/Scripts Events Manager) to apply when you Save a Document - no need to remap shortcut keys.
Copy link to clipboard
Copied
Are you sure that meets the OP’s needs?
If the Save Event is triggered isn’t the Saving already happening?
Copy link to clipboard
Copied
Are you sure that meets the OP’s needs?
If the Save Event is triggered isn’t the Saving already happening?
By @c.pfaffenbichler
Agreed, Events are triggered after completion.
Copy link to clipboard
Copied
There is a "Start Save Document" event that is triggered, so a script can run before the save completes.
Copy link to clipboard
Copied
Good one!
Personally I would still prefer assigning the shortcut to a Script, though.
Copy link to clipboard
Copied
Such a script isn't available somewhere??
Copy link to clipboard
Copied
Then you should write one to meet your needs.
Do you have any JavaScript-experience?
Edit:
// 2022, use it at your own risk;
if (app.documents.length > 0) {
if (activeDocument.saved == false) {
var theCheck = confirm ("really save?");
if (theCheck == true) {
activeDocument.save()
};
};
};
Copy link to clipboard
Copied
OK! Thanks, I'll try!
Copy link to clipboard
Copied
I added a Script to the previous post that presents a confirm-dialog before saving.
Copy link to clipboard
Copied
Unfortunately I haven't yet found an opportunity to test the script 🙂
Copy link to clipboard
Copied
I am not sure I understand.
What is the problem?
Copy link to clipboard
Copied
Thanks for your concern! Just been too busy for testing 🙂
Copy link to clipboard
Copied
Hi! It took just a little more than one month I did the test: The script works fine! Thanks! I also like to tell that my earlier problem with the script from Stephen_A_Marsh found a reason (I fortunatelly got the functional scripts from Stephen :): Also this time I used TextEdit to change the appendix to jsx. It looked fine on the desktop, with the file name plus .jsx, but the script didn't work. Now I looked at the info of the file and found that there were two appendixes in the info table, the file name plus .txt.jsx. That was not visible on the desktop, only .jsx. After deleting .txt, the script began working! Regards, Tuomas
Copy link to clipboard
Copied
To add, I just made some major changes to a PS file, was a bit nervous in saving, and pressed Enter. ... After that there was a happy feeling when I was first asked if I really want to save. I answerd, Yes. 🙂
Copy link to clipboard
Copied
Adding to the code from @c.pfaffenbichler the following will also offer to Save As an unsaved document (as the original code only works with previously saved files):
// CODE REMOVED, NEEDS MORE WORK!
I would think that closing the doc without saving could also be a logical addition when no is pressed.
https://prepression.blogspot.com/2017/11/downloading-and-installing-adobe-scripts.html
Copy link to clipboard
Copied
If you're concerned about saving, when you don't want to save, don't use cloud documents. They will save by just closing them, without any warning.