ActiveX component can't create object: (800A01AD)

Anyone, especially newbies, asking for help with Photoshop Scripting and Photoshop Automation - as opposed to those contributing to discussion about an aspect of Photoshop Scripting

Moderators: Tom, Kukurykus

Polylocks

ActiveX component can't create object: (800A01AD)

Post by Polylocks »

Ok, so the weird thing is I have a vbs script that creates the application object like this:

Code: Select allSet appRef = CreateObject( "Photoshop.Application" )

When I run the script directly from the commandline or dblclicking it, it works fine. It opens photoshop and does the file manipulations I want. When I make the call to the script from a makefile using nmake, I get this error everytime.

---------------------------
Windows Script Host
---------------------------
Script: C:\dev\projects\MCF\TnT\Tools\bin\SaveObjectLayersAsJPG.vbs
Line: 147
Char: 3
Error: ActiveX component can't create object: 'Photoshop.Application'
Code: 800A01AD
Source: Microsoft VBScript runtime error

I looked around and saw lots of references to error 800A01AD. Most seem to resolve it by a call to regsrvr32 with a dll. I would be happy to do this if I knew what I needed to register.

I am using Photoshop CS5 on a Win 7 machine, so it's a 64 bit machine and the version of nmake is from VS 2005 so it's 32 bit. Could the act of calling the script from a 32 bit app cause it to fail to create the 64 bit app? Is there a way to register the app to work in this case?