How to get the version of an InDesign file
You can get it from metadata (the script was posted by Loic Aigon) like so:
var main = function() { if (!ExternalObject.AdobeXMPScript) { try { ExternalObject.AdobeXMPScript = new ExternalObject('lib:AdobeXMPScript'); } catch(e) { alert('Unable to load the AdobeXMPScript library!'); return false; } } var f = File.openDialog(); if (!f) return; var xmpFile = new XMPFile(f.fsName, XMPConst.UNKNOWN, XMPConst.OPEN_FOR_READ); var xmp = xmpFile.getXMP(); xmpFile.closeFile(XMPConst.CLOSE_UPDATE_SAFELY); alert( xmp.getProperty ( XMPConst.NS_XMP, "CreatorTool") ); } main();
You can also use the the 'IDentify' script written by Jongware, but it doesn't work with the latest versions: e.g. CC 2017. (The source is here)