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

[Javascript] How to get InDesign version number?

Community Beginner ,
Jan 20, 2020 Jan 20, 2020

Copy link to clipboard

Copied

Hello,

 

which function/variable gives me the current installed  InDesign version number(s)?

 

Best regards

Alexander

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 3 Correct answers

Community Expert , Jan 20, 2020 Jan 20, 2020

app.version returns the version number of InDesign that your script is running in.

 

 

 

Votes

Translate

Translate
Community Expert , Jan 20, 2020 Jan 20, 2020

Hi Alexander,

all currently installed versions?

 

If you need the target strings for all installed InDesign versions you could do:

 

var allInDesignVersionsInstalled = [];

for( var n=0; n<apps.length; n++ )
{
	if( apps[n].match(/^indesign/) )
	{
		allInDesignVersionsInstalled[ allInDesignVersionsInstalled.length++ ] =
		apps[n] ;
	};
};

alert( allInDesignVersionsInstalled.join("\r") );

 

Below an example result from my Windows machine:

Your result could be different.

 

Apps-Filtered-to-indesign.PNG

 

If you want to get th

...

Votes

Translate

Translate
Guru , Jan 20, 2020 Jan 20, 2020

Here I wrote a couple of functions that return InDesign versions in a human-friendly format: e.g "CC 2019" or "2020".

Votes

Translate

Translate
Community Expert ,
Jan 20, 2020 Jan 20, 2020

Copy link to clipboard

Copied

Hi,

If you are on a Windows computer, from the Help menu, or on  an AppleMac, on the top left, click on on Adobe InDesign.

From there look for the About Adobe InDesign.

 

Or, I misunderstood your question, and you want the number to appear dynamically in your document?

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
Community Beginner ,
Jan 20, 2020 Jan 20, 2020

Copy link to clipboard

Copied

Hey,

 

I think I should have clarified, that I need the Javascript function for this haha!

 

Best regards

Alexander

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
Community Expert ,
Jan 20, 2020 Jan 20, 2020

Copy link to clipboard

Copied

app.version returns the version number of InDesign that your script is running in.

 

 

 

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
Community Beginner ,
Jan 20, 2020 Jan 20, 2020

Copy link to clipboard

Copied

Great, thank you! 

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
Community Expert ,
Jan 20, 2020 Jan 20, 2020

Copy link to clipboard

Copied

Hi Alexander,

all currently installed versions?

 

If you need the target strings for all installed InDesign versions you could do:

 

var allInDesignVersionsInstalled = [];

for( var n=0; n<apps.length; n++ )
{
	if( apps[n].match(/^indesign/) )
	{
		allInDesignVersionsInstalled[ allInDesignVersionsInstalled.length++ ] =
		apps[n] ;
	};
};

alert( allInDesignVersionsInstalled.join("\r") );

 

Below an example result from my Windows machine:

Your result could be different.

 

Apps-Filtered-to-indesign.PNG

 

If you want to get the exact version strings you have to open all installed versions by using a target statement and read out app.version.

 

#target indesign-15.064
app.version // Result: 15.0.1.209

 

Regards,
Uwe Laubender

( ACP )

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
New Here ,
May 16, 2021 May 16, 2021

Copy link to clipboard

Copied

LATEST

Thanks a lot!. so maybe i'll assume the ".064" and ".032" means 64bit and 32bit i guess?

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 ,
Jan 20, 2020 Jan 20, 2020

Copy link to clipboard

Copied

Here I wrote a couple of functions that return InDesign versions in a human-friendly format: e.g "CC 2019" or "2020".

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