5 Replies Latest reply: Jul 19, 2011 10:23 AM by wiseloc RSS

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

    wiseloc

      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