Photoshop CS5 does not recognize activeDocument

I wrote a fairly large script for Photoshop CS5.1 on my 64-bit Vista machine. Now, when I run the same script on my new 64-bit Windows 7 machine, the Adobe ExtendScript Tool complains about activeDocument (there is no such element) in this simple script:

 #target photoshop var pDoc = app.activeDocument; alert("Done!"); 

I tried both without #target and selecting the target in the ExtendedScript tool. Is there something I missed, or I need to install something else. I installed only the 64-bit version of Photoshop. Is it so that 32-bit Photoshop has script extensions?

I don’t understand why I need to install both the 32-bit and 64-bit versions if I use only the 64-bit version.

+2
source share
1 answer

solvable
The mystery is solved. It is difficult if you interpret the error message more carefully. Of course, I cannot get activeDocument if there are no documents in Photoshop, duh!?! I interpreted this as an activeDocument statement that was not recognized, but, of course, if I do not have a document, then there is no such element (as a Photoshop document) to give me. I'm used to C ++ and expect reuslt to be NULL or similar if there is a problem getting the document ... excuses, excuses;)

Well, if someone else has to get into the same problem, here is the answer at my expense: D Now I will delete the 32-bit version ...

+1
source

All Articles