I am attempting to debug javascript that runs inside Adobe indesign. The first executable line returns an "undefined is not an object"
if ( app.documents.length==0 ) { exit(); }
Could Adobe have moved the nested object "documents" to a higher level?