Copy link to clipboard
Copied
We recently upgraded to CC 2019, and now vbscript is unable to access illustrator.
Scripts fail with the following error: ActiveX component can't creata object: 'Illustrator.Application'
on first line.. Set appRef = CreateObject("Illustrator.Application")
This automation ability is an important part of our workflow, so it is important to us to get this fixed.
Has anyone else experienced/ solved this error?
Copy link to clipboard
Copied
I recently upgraded to CC 2020, and now vbscript is unable to access illustrator.
Error message: ActiveX component can't create object 'Illustrator.Application''.
I did try this: Set appRef = CreateObject("Illustrator.Application.CC.2020"), but this also crashed.
Error message: ActiveX component can't create object 'Illustrator.Application.CC.2020''.
Does anyone has a workaround for this? Thanks in advance.
Copy link to clipboard
Copied
Hey, juno88,
The way i solved the same problem in 2019 was as follows:
Open regedit.exe on your computer, and find the reference to the illustrator type library, just by scrolling through all the classes under HKEY_CLASSES_ROOT. You are looking for something similar to Illustrator.Application.[someothertext].
Then in your vba, refer to that name instead of 'illustrator.application.cc.2020'.
For example, photoshop 2019 type library is listed in the registry as 'Photoshop.Application.130'.
When i createobject with that text, everything works fine.
Hopefully that helps...
cjk
Copy link to clipboard
Copied
Hi cjk,
I found this in regedit, Computer\HKEY_CLASSES_ROOT\Illustrator.Application.24\Default - with the value 'Illustrator Application'. That's what my orig. vbscript has - CreateObject("Illustrator.Application") but it didn't work.
Copy link to clipboard
Copied
Try CreateObject("Illustrator.Application.24")
Copy link to clipboard
Copied
OMG, you're a genius. It WORKS w/ CreateObject("Illustrator.Application.24"). Thank you so much.
Copy link to clipboard
Copied
Yeah, i was pretty pumped when i figured that out. Adobe REALLY needs to clean this kind of thing up though.
Absolutely no documentation about this at all.
Copy link to clipboard
Copied
Right, there is no documentation for Illustrator 2019 and now 2020 is released. They probably short of technical writers 🙂 Thanks again cjk.
https://www.adobe.com/devnet/illustrator/scripting.html
Copy link to clipboard
Copied
Hi All,
I'm using Adobe CS6 version.
Error message: ActiveX component can't create object 'Illustrator.Application''.
I have tried CreateObject("Illustrator.Application.16")/ CreateObject("Illustrator.Application.CS6") as well. Nothing works.
Has anyone else experienced/ solved this error?
Copy link to clipboard
Copied
Hey,
Go ahead and look in your registry under Computer\HKEY_CLASSES_ROOT\
and look for an entry like Illustrator.Application.##.
Then use the name of that entry, and your code should run.
Copy link to clipboard
Copied
great, thank you, you solve my problem
The question now is? why there are .number after sometime, or not, depending on the computer (on 3 computers, jute one have this issue with terminal number in HKEY_CLASSES_ROOT)