Skip to main content
Participant
June 26, 2010
Question

Running a script on multiple indesign files

  • June 26, 2010
  • 1 reply
  • 1493 views

I need to run the same script on a directory of indesign files, then call a menu item from a custom plugin in indesign cs4 which exports the document as a customised xml file using the plugin and saves each on to a directory.

Should i just be trying to write a javascript that gets run by the user in the scripts folder in indesign, or should i be trying to write an external application that drives indesign, runs the script on each file and exports each file to an xml file?? if i should writing an external applicaion. what language/technologies should i be using?

i'm new to this an am unsure of what technologies i should be using to automate indesign tasks on multiple indesign files at once.

This topic has been closed for replies.

1 reply

June 26, 2010

If you wanna run from outside, you can use vb or vb.net is the best, If you are familar with javascript you can write like this

        for(var sFile in Folder(artFolder).getFiles())

        {

               // execute menuitem

        }

Arivu.

Participant
June 28, 2010

Thanks for the response, I've been thinking of using vb.net, i'm just confused as to how to drive indesign with it. can i just call the indesign API from vb?

Harbs.
Legend
June 28, 2010

Any supported scripting language would work.

The supported scripting languages are: ExtendScript (Javascript) (cross platform), Visual Basic (VB Script) (Windows), and AppleScript (Mac).

.Net is NOT officially supported. Some people get it to work, but it's painful...

Harbs