Skip navigation
Currently Being Moderated

How can we get save event at Photoshop shutdown?

Aug 8, 2012 5:39 AM

Hi All!!


I have to perform some actions on the save event of a document. I had no problem in doing the same. But, during testing different save event trigger scenarios, I came across the a situation in which an untitled document is open and the user closes Photoshop. At this point Photoshop prompts the "Do you want to save document?" message. Regardless of the user selection ("Yes"/"No"), the plugin is unable to get the save event, possibly because of application shutdown. I get the kSPInterfaceShutdownSelector message directly. No stop at the save event callback.


How can I ensure that my save event callback is executed everytime a user saves a document?



  • Currently Being Moderated
    Aug 8, 2012 2:48 PM   in reply to poortip87

    In this case you should get a Close event, with a saved path & format, if necessary. You have to handle these too.

    Mark as:
  • Currently Being Moderated
    Aug 9, 2012 10:17 AM   in reply to poortip87

    You have to parse the close event's descriptor. Look for keySaving key

    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points