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

[Javascript] How to get InDesign version number?

Community Beginner ,
Jan 20, 2020 Jan 20, 2020

Hello,

 

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

 

Best regards

Alexander

TOPICS
Scripting
2.7K
Translate
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.

 

 

 

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.PNGexpand image

 

If you want to get th

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

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

Translate
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

Hey,

 

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

 

Best regards

Alexander

Translate
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

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

 

 

 

Translate
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

Great, thank you! 

Translate
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

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.PNGexpand image

 

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

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

Translate
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
Advisor ,
Feb 17, 2025 Feb 17, 2025

HI @Laubender 

How to get the version number of the current open.
And the year in “Adobe InDesign 2024” or “Adobe InDesign 2025”.

Translate
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 ,
Feb 23, 2025 Feb 23, 2025

@dublove asked: " How to get the version number of the current open.
And the year in “Adobe InDesign 2024” or “Adobe InDesign 2025”. "

 

Hi @dublove ,

like I said in 2020 above, you get the version with app.version.

And, at least with the recent InDesign versions the year is part of the name of the application.

 

var appVers = app.version;
var appName = unescape( File( app.fullName ).name );
alert
(
"Version: " + appVers +"\r" +
appName
);

 

Regards,
Uwe Laubender
( Adobe Community Expert )

 

Translate
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
Advisor ,
Feb 23, 2025 Feb 23, 2025
LATEST

Thank you very much

Translate
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

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

Translate
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