Copy link to clipboard
Copied
With InDesign scripting how can I determine the version of an InDesign document - e.g was this saved with CC 2015 or CC 2017?
Thanks !
Just downloaded and tested it in InDesign CC 2017, but it doesn't provide proper result:
However, the code is open so it's possible to update it to work with the new versions released after 2013.
— Kas
Copy link to clipboard
Copied
Jongware wrote the 'IDentify' script, but I'm not sure if it works with the latest versions.
— Kas
Copy link to clipboard
Copied
oups too late
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();
Copy link to clipboard
Copied
Loic,
I'm not sure if some old versions -- e.g. CS2 -- have metadata to check the version. At the moment I don't have such a file at hand to check it.
— Kas
Copy link to clipboard
Copied
cs…whaaa
Copy link to clipboard
Copied
We're still on CS3 at work .
— Kas
Copy link to clipboard
Copied
Just downloaded and tested it in InDesign CC 2017, but it doesn't provide proper result:
However, the code is open so it's possible to update it to work with the new versions released after 2013.
— Kas
Copy link to clipboard
Copied
Thanks I can work with that.
pjb