[Javascript] How to get InDesign version number?

New Here ,
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

994

Likes

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

Adobe Community Professional , Jan 20, 2020 Jan 20, 2020
app.version returns the version number of InDesign that your script is running in.

Likes

Translate

Translate
Adobe Community Professional , 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. If you want to get th...

Likes

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".

Likes

Translate

Translate
Adobe Community Professional ,
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?

Likes

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 ,
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

Likes

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
Adobe Community Professional ,
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.

 

 

 

Likes

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

Copy link to clipboard

Copied

Great, thank you! 

Likes

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
Adobe Community Professional ,
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 )

Likes

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?

Likes

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".

Likes

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