Copy link to clipboard
Copied
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?
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
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
Copy link to clipboard
Copied
When I test it from the command line I get a dialog asking if I really want to run the script in ID -- is there some wy to turn that warning off?
Thanks
Copy link to clipboard
Copied
Hm. This is a security warning. Don't think you can turn this off.
But maybe others have a solution for this?
Regards,
Uwe
Copy link to clipboard
Copied
Hi akiva_atwood ,
what's your operating system version?
Are you using the -run flag or do you use the -cmd flag?
Could make a difference. See here:
How to execute an InDesign extendscript from command line? - Stack Overflow
EDIT: See the comments about the warning message there!
Regards,
Uwe
Copy link to clipboard
Copied
Copy link to clipboard
Copied
See here for trusted folder:
Running ExtendScript Toolkit in command line - Trusted location message
This should be a trusted folder:
Folder.myDocuments
See: Adobe InDesign CS6 (8.0) Object Model JS: Folder
Regards,
Uwe
Copy link to clipboard
Copied
Thank you
Copy link to clipboard
Copied
You need a "Adobe Scripts" folder in the Folder.myDocuments location -- that's the trusted folder.
Copy link to clipboard
Copied
Good stuff Uwe! Did you see that documented anywhere?
Ariel
Find more inspiration, events, and resources on the new Adobe Community
Explore Now