3 Replies Latest reply on Mar 30, 2015 8:48 PM by Tom Ruark

    CreateObject CC do not work

    bastieneichenberger Level 1

      Hi,

       

      I have some problems to create a VBS Object for Photoshop and Illustrator. It's work with InDesign but not with Photshop and Illustrator:

      Set appRef = CreateObject("Illustrator.Application") // OK

      Set appRef = CreateObject("Photoshop.Application") // OK

      Set appRef = CreateObject("InDesign.Application") // OK

       

      Set appRef = CreateObject("Illustrator.Application.CC.2014") // NOT OK

      Set appRef = CreateObject("Photoshop.Application.CC.2014") // NOT OK

      Set appRef = CreateObject("InDesign.Application.CC.2014") // OK

       

      I don't understand why this notation works only with InDesign. Have somebody an idea how to solve this?

        • 2. Re: CreateObject CC do not work
          Chuck Uebele Adobe Community Professional & MVP

          I'm not very familiar with VB, but just looking at your code, you're splitting the program's names. Most likely, you should keep CC2014 with the name of the program and not split it up "Application".

          • 3. Re: CreateObject CC do not work
            Tom Ruark Adobe Employee

            The version numbers are a bit odd because of the 5.5 release we did and the CS and CC branding. You want:

             

            Photoshop.Application.60 for 13.x.x

            Photoshop.Application.70 for 14.x.x

            Photoshop.Application.80 for 15.x.x

             

            Here is my test script results. Tries to launch and quit Photoshop.

             

             

            d:\Files\VBScripts>cscript TestLaunch10.vbs 60

            Trying to launch Photoshop.Application.60

            DOM library

            13.1.2

            C:\Program Files\Adobe\Adobe Photoshop CS6 (64 Bit)\

            Seconds to launch: 19

            Done

             

            d:\Files\VBScripts>cscript TestLaunch10.vbs 70

            Trying to launch Photoshop.Application.70

            DOM library

            14.2.0

            C:\Program Files\Adobe\Adobe Photoshop CC (64 Bit)\

            Seconds to launch: 24

            Done

             

            d:\Files\VBScripts>cscript TestLaunch10.vbs 80

            Trying to launch Photoshop.Application.80

            DOM library

            15.2.3

            G:\...secretlocation...

            Seconds to launch: 18

            Done