• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

[JS] How to determine version of InDesign document?

Participant ,
Feb 10, 2017 Feb 10, 2017

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 !

TOPICS
Scripting

Views

2.0K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Guru , Feb 10, 2017 Feb 10, 2017

Just downloaded and tested it in InDesign CC 2017, but it doesn't provide proper result:

10-02-2017 19-26-38.png

However, the code is open so it's possible to update it to work with the new versions released after 2013.

— Kas

Votes

Translate

Translate
Guru ,
Feb 10, 2017 Feb 10, 2017

Copy link to clipboard

Copied

Jongware wrote the 'IDentify' script, but I'm not sure if it works with the latest versions.

— Kas

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
People's Champ ,
Feb 10, 2017 Feb 10, 2017

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();

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guru ,
Feb 10, 2017 Feb 10, 2017

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
People's Champ ,
Feb 10, 2017 Feb 10, 2017

Copy link to clipboard

Copied

cs…whaaa

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guru ,
Feb 10, 2017 Feb 10, 2017

Copy link to clipboard

Copied

LATEST

We're still on CS3 at work .

— Kas

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guru ,
Feb 10, 2017 Feb 10, 2017

Copy link to clipboard

Copied

Just downloaded and tested it in InDesign CC 2017, but it doesn't provide proper result:

10-02-2017 19-26-38.png

However, the code is open so it's possible to update it to work with the new versions released after 2013.

— Kas

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Feb 10, 2017 Feb 10, 2017

Copy link to clipboard

Copied

Thanks I can work with that.

pjb

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines