I need vars global js in CS6 PS 64-bit, but they are not staying in memory.

I read that global vars in Photoshop are only kept in memory, if they are defined in a startup script, but I found that the App Start '/ntfy' event does not seem to be considered a startup script in this sense. Experimenting on my PC, I found that a global variable defined in a script that is defined in the user interface Manager Script events to run at startup of the App doesn't stay in memory. (This sentence is so long sorry).

The other method of startup scripts, put a script in C:\Program Files\Common Files\Adobe\Startup CS6\Adobe of scripting Photoshop, does not work for me.  The directory did not exist, so I did and put a simple script (var statements and an alert() order) inside.  The simple script never ran because the alert window never popped up and the variables were never defined.

As the document close event does not provide the name of the document that was closed, I need global vars to track documents open before and after the event.  I could use a file to save the data, but this isn't the best solution.

Thanks for your help.

Even if you run the 64-bit version of Photoshop startup files are in the Program Files (x 86) tree. Perform a search in Windows Explorer for photoshop.jsx to find the exact path of the folder.

But rather than use variables overall, I would say, you store the data you need in customOptions.

Tags: Photoshop

Similar Questions

Maybe you are looking for