Skip navigation
Currently Being Moderated

Calling one script from another

Mar 26, 2013 11:48 AM

InDesign has a nice mechanism for calling one script from another, so code can be made modular. What about FrameMaker ExtendScript? What methods are people using to call one script from another? Thanks for any suggestions.


Rick Quatro

  • Currently Being Moderated
    Mar 26, 2013 11:57 AM   in reply to frameexpert

    Hi Rick,


    I write my scripts such that they always have the entire code in a function call, Basically, the only piece of code outside the main function call is calling that main function (so that I can test and debug each script separately). Then, when I use #include <scriptname.jsx> I can use that same script from another one. Normally, I write one overall script that installs the various commands in menus and contains the switch for the command function that calls each of the separate scripts, all of which are included via the #include. Save that overall script as binary and you do not need to drag all the scripts into the startup directory.


    Kind regards from c-c-c-c-cold Netherlands



    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points