Copy link to clipboard
Copied
The ExtendScript documentation lists a variety of flags representing conditions found during an Open(), some that still permit success:
and some that result in failure:
But I can't find an example of how to check the propVal return parameters from Open(). Are they bitwise flags? Are they indexed ints? I don't understand the mechanics of how propVals work, and the ExtendScript docs seem to assume prior knowledge.
Could someone please post an example of how to check for various flags in the Constants.FS_OpenStatus value? Thanks in advance!
- Chris
Copy link to clipboard
Copied
Try using this and check the FrameMaker Console for messages:
// Get a property list to return any error messages.
var retParm = new PropVals ();
// ... open code here ...
PrintOpenStatus (retParm);
Copy link to clipboard
Copied
Thank you! This prints any status messages textually, which is helpful for debugging. How can I test retParm for specific conditions in a script? It's the script processing of retParm that has me stumped.
- Chris