Skip to main content
Inspiring
July 15, 2016
Answered

Will Indesign Scripts Work in Illustrator?

  • July 15, 2016
  • 1 reply
  • 1024 views

I have a few Really Useful Scripts in Indesign that  several People In the Indesign Scripting FOrum has helped me with.  I was wanting to know if they will work as is? Without messing up Illustartor.  And also Where would i Put these in Illustrator Folder so they auto Startup?  Do i Just have to CHange the #targetengine​ to specify Illustrator?

Thanks in advance.

This topic has been closed for replies.
Correct answer pixxxelschubser

The answer is: a little bit „yes“. But much more „no“.

Sure you can run a HelloWorld script in InDesign and after change the targetengine to Illustrator you can run the same script in Illu. But that's all.

The reason for this is simple: the DOM (Document object model) of InDesign is different to Illustrators DOM.

1 reply

pixxxelschubser
Community Expert
pixxxelschubserCommunity ExpertCorrect answer
Community Expert
July 15, 2016

The answer is: a little bit „yes“. But much more „no“.

Sure you can run a HelloWorld script in InDesign and after change the targetengine to Illustrator you can run the same script in Illu. But that's all.

The reason for this is simple: the DOM (Document object model) of InDesign is different to Illustrators DOM.

cbishop01Author
Inspiring
July 15, 2016

Not the answer i was hoping for but Thank you all the same

Silly-V
Legend
July 16, 2016

It will work if your script just uses the basic commands which are used for most of the Adobe apps- for example, I bet you can alert the app.activeDocument.name to get your open document's name, all the same in Ai, Ps and Id.