4 Replies Latest reply on Apr 15, 2014 4:20 AM by hmrc87

    Why doesn't the #target directive work in InDesign CC scripting?

    FilmTraveler Level 1

      I have a script which works fine when run from ExtendScript Toolkit on both InDesign CS4 and InDesign CC -- but I am unable to specifically target CC using the #target directive.

       

      At the top of my .jsx file, if I put:

       

      #target "InDesign-6.0"

       

      Then the script will open InDesign CS4 and run the script. However, if I put:

       

      #target "InDesign-9.0"

       

      It throws a dialog error "InDesign-9.0" is undefined! I've tried 8.0 and 9.1 just in case I had the version number wrong; nothing works.

       

      Now, it is true that I can get it to work by simply adding:

       

      #target "InDesign"

       

      which targets the latest installed version, CC. BUT this is not a solution, just a workaround! I want to be absolutely sure I am targeting the specific version specified. Someday I may install a newer version alongside it, and then all of a sudden it will "jump" to that version when the script runs, and that's not what I want.

       

      Any suggestions?