• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

ActiveX component can't creata object: 'Illustrator.Application' Illustrator CC 2019 23.0.6

Community Beginner ,
Sep 30, 2019 Sep 30, 2019

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?

Views

2.3K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe
New Here ,
Nov 14, 2019 Nov 14, 2019

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Nov 14, 2019 Nov 14, 2019

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Nov 14, 2019 Nov 14, 2019

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.

 

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Nov 14, 2019 Nov 14, 2019

Copy link to clipboard

Copied

Try CreateObject("Illustrator.Application.24")

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Nov 14, 2019 Nov 14, 2019

Copy link to clipboard

Copied

OMG, you're a genius. It WORKS  w/ CreateObject("Illustrator.Application.24"). Thank you so much.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Nov 14, 2019 Nov 14, 2019

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Nov 14, 2019 Nov 14, 2019

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

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 20, 2020 Jan 20, 2020

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?

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jan 20, 2020 Jan 20, 2020

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Oct 19, 2023 Oct 19, 2023

Copy link to clipboard

Copied

LATEST

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)

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines