Deploying Photoshop event scripts

Hey All,

Is anyone aware of a way to deploy a photoshop event script without a user having to use the ‘Scripts Event Manager’? We have a few photoshop scripts which i want to deploy to peoples machines, but i dont want to have them all have to go through the event manager and set them up.

I’m curious how others handle this type of process?

Mike.

I haven’t found one, but I’ll reply in case there is an easy way and someone comments…

I’ve written a script that does what I think you’re looking for. I use it specifically for an Adobe script-sync app I’ve written for my artists that on first run register’s an event with Photoshop through the COM. While I don’t own this code, my employer does I’m not at liberty to share it. I can however I can point you in the right direction.

What I think you’re looking for are Notifiers, search it up in the Object Model Viewer. app.notifiers.add(eventName, eventFile, eventClass); should be what you want. You will want to do some validation upfront to ensure the user doesn’t already have the notifier setup and that you’re actually passing in proper events.

Here is a small snippet that I put together for you, to hopefully set you on the right path :slight_smile:

function installNotifier(eventName, eventFile, eventClass)
{
    var notiferValid = validateNotifer(eventName, eventFile, eventClass);

    if(notiferValid && !notifierInstalled(eventName))
    {
        app.notifiers.add(eventName, eventFile, eventClass);
    }
}

Basically when all is set and done you can run a simple script to manage the events. Depending on what you’re doing, this can be a startup script in Photoshop that will ensure users to always have the events you want.

Know it’s an old thread, but just found all the info how to hook up specific events, so thought this would be a good place to share for documentation purposes.

Start Application (eventName: "Ntfy")
New Document (eventName: "Mk  ", eventClass: "Dcmn")
Open Document (eventName: "Opn ")
Start Save Document (eventName: "save", eventClass: "saveBegin")
Save Document (eventName: "save", eventClass: "saveSucceeded")
Close Document (eventName: "Cls ")
Print Document (eventName: "Prnt")
Export Document (eventName: "Expr")
Everything (eventName: "All ")
2 Likes