Quantcast
Channel: Adobe Community: Message List - FrameMaker Scripting
Viewing all articles
Browse latest Browse all 3715

Re: Calling one script from another

$
0
0

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

 

Jang


Viewing all articles
Browse latest Browse all 3715

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>