Skip to main content
Inspiring
January 16, 2019
Answered

#target problem

  • January 16, 2019
  • 1 reply
  • 2326 views

When I run the following script from the toolkit (4.0.0.1)

#target indesign

alert("Hello");

I get the following error:

"Adobe Indesign CS6 (8.0) must be running to retrieve Object Model data. Do you want to launch Abobe Indesign CS6?"

I have ID 2018 open. (ME edition -- but that shouldn't make a difference)

Changing the target to indesign-13.1 gives me the error

"indesign-13.1" is undefined!

Any ideas?

This topic has been closed for replies.
Correct answer Laubender

Hi akiva_atwood ,

try this string:

#target indesign-13.064

That InDesign CC 2018 is updated to version 13.1 is not important. The .064 part is indicating 64 bit.

For other information on versions installed or not, just exploit what's returned by this line of code running with the ESTK:

BridgeTalk.__diagnostics__

Regards,
Uwe

1 reply

Community Expert
January 16, 2019

You need to comment the line #target indesign

This means that the script has to run in the script environment of InDesign. alert does not need InDesign to run. If you do use #target then it will launch the latest version of InDesign, unless of course you use the version of InDesign.

-Manan

-Manan
Inspiring
January 16, 2019

I know. I want to be able to run the script from the command line -- so I need the #target.

(the alert was just to test the #target)

My problem is that is DOESN'T. It wants to open CS6

And every time I open the toolkit now it gives me the same error

LaubenderCommunity ExpertCorrect answer
Community Expert
January 16, 2019

Hi akiva_atwood ,

try this string:

#target indesign-13.064

That InDesign CC 2018 is updated to version 13.1 is not important. The .064 part is indicating 64 bit.

For other information on versions installed or not, just exploit what's returned by this line of code running with the ESTK:

BridgeTalk.__diagnostics__

Regards,
Uwe