How to run JSX Script from JavaScript or CFScript
I'm trying to find a way to execute a JSX Script externally. Say it is named CreateMasterDocument.jsx. It contains functions that manipulate InDesign documents.
I originally wanted to find a way to pass parameters to this JSX function below, as well as run it from JavaScript or CFScript (we use both); however, I can most likely read in this JSX file, and manipulate the first line "createStagingDocument(3,6,9,27);", then re-save the file. But still need to launch this JSX file.
Any ideas how to execute the JSX file from JavaScript?
Thanks,
Heather
//uncomment for testing
createStagingDocument(3,6,9,27);
function createStagingDocument(AccountID, SourceDocumentFolderID, StagingCampaignID, StagingDocumentID)
{
//the function that manipulates InDesign and XMPie plugin, documents....
}
