Skip to main content
Participating Frequently
January 20, 2020
Answered

[Javascript] How to get InDesign version number?

  • January 20, 2020
  • 3 replies
  • 3381 views

Hello,

 

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

 

Best regards

Alexander

Correct answer Kasyan Servetsky

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

3 replies

Kasyan Servetsky
Kasyan ServetskyCorrect answer
Legend
January 20, 2020

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

Community Expert
January 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.

 

 

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 )

Participant
May 16, 2021

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

Eric Dumas
Community Expert
Community Expert
January 20, 2020

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?

Participating Frequently
January 20, 2020

Hey,

 

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

 

Best regards

Alexander

Peter Kahrel
Community Expert
Community Expert
January 20, 2020

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