Skip to main content
Participating Frequently
Jan 20, 2020 12:27 PM UTC
Answered

[Javascript] How to get InDesign version number?

Hello,

 

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

 

Best regards

Alexander

Kasyan Servetsky
Kasyan ServetskyCorrect answer
Legend
Jan 20, 2020 2:00 PM UTC

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

10 replies

Kasyan Servetsky
Kasyan ServetskyCorrect answer
Legend
Jan 20, 2020 2:00 PM UTC

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

Translate
Community Expert
Jan 20, 2020 1:56 PM UTC

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 )

Translate
Participant
May 16, 2021 4:45 PM UTC

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

Translate
Eric Dumas
Community Expert
Community Expert
Jan 20, 2020 12:31 PM UTC

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?

Translate
Participating Frequently
Jan 20, 2020 12:33 PM UTC

Hey,

 

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

 

Best regards

Alexander

Translate
Peter Kahrel
Community Expert
Community Expert
Jan 20, 2020 1:04 PM UTC

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

 

 

 

Translate