I copy-paste these common functions from one .jsx to the other.
But surely there's a way to create a common .jsx library that can be imported into other .jsx files (like #include in C or require in Python).
Can you help please?
>(like #include in C or require in Python).
What do you know: #include myfunctions.jsx;
Place a line like this at the start of your script:
#include "/D/Program Files/Adobe/Adobe InDesign CS3/Scripts/Libraries/scriptLib.jsx"
You can find more information in Modular Programming Support chapter of JavaScrip Tools Guide. See also #includepath statement.