Skip navigation
wiseloc
Currently Being Moderated

How to start InDesign CS5 via VBS (with installed CS5.5)?

Jul 17, 2011 4:52 AM

Before I installed InDesign CS5.5 I could start InDesign CS5 via VBS:


Set oInDesign = CreateObject("InDesign.Application.CS5")

Now it seems that InDesign CS5.5 has the same ProgramID ("InDesign.Application.CS5") and CLSID {ED36EA7C-9E21-43dc-BF9D-7E1879734358}.
When I now try to execute my code the results are:

1) When no instance of InDesign is running, the script will start InDesign CS5.5
2) When exclusively InDesign CS5.5 is running, the script will be executed in CS5.5
3) When exclusively InDesign CS5 is running, the script will be executed in CS5
4) When both CS5 and CS5.5 are running, the script will be executed in CS5.5

So CS5.5 seems to always have the priority (except when CS5 is running exclusively).

Is there a possibility to define the exact target application, and either start CS5 or CS5.5 (regardless whether one or both versions are running)?
Preferably I want to avoid to terminate a running CS5.5...

Is this maybe just an issue of registering the correct typelib?
I am running Windows 7 Ultimate 64 bit.

Thanks & best regards
Wolfgang

 
Replies
  • John Hawkinson
    5,572 posts
    Jun 25, 2009
    Currently Being Moderated
    Jul 17, 2011 12:46 PM   in reply to wiseloc

    I don't do VB, but perhaps you should be using GetObject() instead?

     
    |
    Mark as:
  • John Hawkinson
    5,572 posts
    Jun 25, 2009
    Currently Being Moderated
    Jul 19, 2011 10:00 AM   in reply to wiseloc

    Huh. I find this even more confusing. Is the theory therefore that

    CS5.5 was run as Administrator prior to CS5, and then somehow CS5's

    TLB file was overridden by CS5.5's? That is weird.

     

    (Is it possible that you had never run both programs as Administrator?)

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points