Skip to main content
ThinkingThings
Inspiring
October 17, 2012
Answered

VB Trying to Open Illustrator CS5 with Illustrator CS6 Trial Installed

  • October 17, 2012
  • 1 reply
  • 4485 views

Greetings Illustrator Scripting Gurus,

Looks like the scripting forum has been pretty busy lately compared to just a year ago. Kudos to all who have been answering questions. I hope to get some time again soon to participate more than I have been able to lately.

So I'm not sure if I nailed the topic correctly in my subject so please allow me to explain. I have written an application in Visual Basic that interects nicely with Illustrator CS5.1, or at least it did until I installed Illustrator CS6 Trial. I will move to that version at some time in the future, but for now I still need to use CS5.1. Previously (prior to CS6 Trial install) I just used  -- CreateObject("Illustrator.Application")  --  to create an instance of Illustrator. After I installed CS6 Trial, the current version CS6 kept launching. So I figured - easy enough - so my line now reads  --  CreateObject(My.Resources.CurrentVersionCS)  --  where My.Resources.CurrentVersionCS = "Illustrator.Application.CS5". But still CS6 continues to launch instead of CS5.

I have given searching the forums a good "college try" to try to find the answer before porstiong but have come up empty. Could anyone lend some direction to this for me?

Thank you very much in advance!

TT

This topic has been closed for replies.
Correct answer CarlosCanto

Carlos,

I had tried it both ways (with and without the comma for the blank path field) and still got the same error. After your reply, I decided to leave AI CS5 open, but this time open CS6 as well when calling the script. When I do "that" with the GetObject(), I do NOT get the exception error, however it still only grabs AI CS6 and NOT AI CS5, even though the GetObject string (or CreateObject string as in my original example) is "Illustrator.Application.CS5".

TT


this is such a pain...it didn't work in mine either until...

CreateObject("Illustrator.Application.CS5.1")

...that did the trick

1 reply

ThinkingThings
Inspiring
October 18, 2012

Anyone?

I hate to think that I have to uninstall CS6 as a workaround for this...  Please - if anyone has any info on this please let me know. Thank you!

Inspiring
October 18, 2012

Sorry I can offer NO help… other than I think you should be able to do this… In ExtendScript I can check what versions of an app is installed and bridgetalk the one I want. In AppleScript I can just reference the app by its full path… I would expect that VB would have something along those paths. On the mac a pref launch services informs the system what to open a file with don't the pc have some app registry…? Carlos is the only regular poster here who knows vb…

CarlosCanto
Community Expert
CarlosCantoCommunity ExpertCorrect answer
Community Expert
October 19, 2012

Carlos,

I had tried it both ways (with and without the comma for the blank path field) and still got the same error. After your reply, I decided to leave AI CS5 open, but this time open CS6 as well when calling the script. When I do "that" with the GetObject(), I do NOT get the exception error, however it still only grabs AI CS6 and NOT AI CS5, even though the GetObject string (or CreateObject string as in my original example) is "Illustrator.Application.CS5".

TT


this is such a pain...it didn't work in mine either until...

CreateObject("Illustrator.Application.CS5.1")

...that did the trick