3 Replies Latest reply on Apr 10, 2011 6:47 PM by Michael L Hale

    JS CS3 app.notifiersEnabled on startup.

    John.Kordas Level 1

      I know I can use the Script Events Manger to enable or disable scripts, but so can any user.  What I would like to do is have a startup script ensure myScript.jsx is always enabled and assigned to the open file event.

       

      using:

       

      #target photoshop
      app.notifiersEnabled = true;
      var eventFile = new File(app.path +"/Presets/Scripts/Event Scripts Only/myScript.jsx");
      app.notifiers.add("Opn ", eventFile);

       

      and placing it in the C:\Program Files\Common Files\Adobe\Startup Scripts CS3\Adobe Photoshop folder all is well. If I go into Photoshop disable the "Enable Events to Run Scripts/Actions:" option and close and reopen Photoshop the option is enabled by default.

       

      The problem is if I start up In Design (or any other CS3 app) I get the following error:

      err.jpg

       

      Why would other application access the C:\Program Files\Common Files\Adobe\Startup Scripts CS3\Adobe Photoshop folder?

       

      Startup Script CS3\Adobe Photoshop to me means only Photoshop will access this folder.

       

      Is there a way to ensure app.notifiersEnabled = true on Photoshop startup?

       

      Cheers, John.