Skip to main content
bagonterman
Inspiring
September 21, 2017
Question

Add even in event manager

  • September 21, 2017
  • 1 reply
  • 2402 views

I need an event before save. In other words triggreed by save but run before photoshop saves.

This topic has been closed for replies.

1 reply

JJMack
Community Expert
Community Expert
September 21, 2017

Event handlers are triggered after the Photoshop event completes. There is no before or at start of event option available for any event handler. And I know of no way to intercept Photoshop Save and Save as command which is what you seem to be wanting to do. What would trigger or automate your pre-save event you want to add.

JJMack
bagonterman
Inspiring
September 21, 2017

So I'm tagging a file with metadata when the user saves the file. However I have to save the document a second time because obviously if i change the file it needs saved again. Unfortunately this makes it just a little bit slower and is inefficient. But if the user pressed save it changed the metadata and then saved it would save a step and be more efficient. This type of functionality exists with event listeners in InDesign and i was hoping for a similar functionality.

JJMack
Community Expert
Community Expert
September 21, 2017

If the user is doing the save manually Setup an Action for them to use instead of using menu File>Save or File>Save As record an action. That the first step is menu File>Scripts>YourMetaDataScript and the second step is an Interactive save step.  You could use insert menu item and choose menu File>Save or Save As.   That will be an interactive save the same as if they used the menu themselves.   You could assign an Fkey shortcut to that sction. Additionally you could change their Shortcuts  for Ctrl+S and Shift+Ctrl+S  to run a script The would be the same as your metadada script with the adition of and interactive save at the end.  The shortcuts are Photoshop Save and Save As shortcuts.  To Automate the Process for them you have to change their Photoshop environment. If you want to avoid the double save I do not think you can do the by adding a script event. How would you automate triggering the event befor a save.  You avoid the double save you have to make your script process the first part of Save.

JJMack