Skip to main content
Inspiring
September 22, 2021
Answered

Trigger script in PS

  • September 22, 2021
  • 1 reply
  • 1397 views

Is it possible (and how) to run some javascript in PS, when user try to save the file? 

This topic has been closed for replies.
Correct answer Stephen Marsh

File > Scripts > Scripts Events Manager (a script GUI to run scripts or actions from an "event").

 

There are basic events built-in – including Save, however, you can also add other more specific events. The script or action is triggered by the save event, so it happens after the actual save has completed.

 

This has to be configured on each computer.

 

EDIT: I think that there are some examples of event based scripts on the forum...

1 reply

Stephen Marsh
Community Expert
Stephen MarshCommunity ExpertCorrect answer
Community Expert
September 22, 2021

File > Scripts > Scripts Events Manager (a script GUI to run scripts or actions from an "event").

 

There are basic events built-in – including Save, however, you can also add other more specific events. The script or action is triggered by the save event, so it happens after the actual save has completed.

 

This has to be configured on each computer.

 

EDIT: I think that there are some examples of event based scripts on the forum...

JJMack
Community Expert
Community Expert
September 22, 2021

Script events are triggered after  the event not before the event. So the save event will have been done. 

JJMack
Stephen Marsh
Community Expert
Community Expert
September 22, 2021

We're both saying the same thing, right?