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

How can I use a script to get the version number and year of the currently open InDesign?

Guide ,
Feb 16, 2025 Feb 16, 2025

C:\Users\dublove\AppData\Roaming\Adobe\InDesign\Version 19.0-J\zh_CN\Find-Change Queries\Text
C:\Program Files\Adobe\Adobe InDesign 2024\Scripts\Scripts Panel\Samples

Here only “Version 19.0-J” and “Adobe InDesign 2024” are changing.

It would be good to get the version number of the currently open version.


I've seen a posting that gets the version number, but it seems to be all installed versions.

https://community.adobe.com/t5/indesign-discussions/javascript-how-to-get-indesign-version-number/m-...

 

Thank you.

TOPICS
Bug , Feature request , How to , Import and export , Performance , Scripting
882
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
LEGEND ,
Feb 16, 2025 Feb 16, 2025

Suggestion from Peter doesn't work / isn't enough for you? 

 

https://community.adobe.com/t5/indesign-discussions/javascript-how-to-get-indesign-version-number/m-...

 

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
Guide ,
Feb 16, 2025 Feb 16, 2025

How do I get the version number of the current open, and 2024?

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
LEGEND ,
Feb 16, 2025 Feb 16, 2025

Have you checked link I've provided? 

 

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
Guide ,
Feb 16, 2025 Feb 16, 2025

 

dublove_0-1739770574155.jpeg

You provided the same link I was talking about.

I just want 19

and 2024

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
Guide ,
Feb 17, 2025 Feb 17, 2025
C:\Program Files\Adobe\Adobe InDesign 2024\Scripts\Scripts Panel\Samples
The script for this path, is this correct?

 

var appFolder = Folder.startup;
var scriptPath=appFolder+"/"+"Scripts"+"/"+"Script%20Panel"+"/"+"Samples"+"/";
alert(scriptPath);

 

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

RobertatIDTasker_0-1739840655793.png

 

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

Awesome ......


How to get the path of the regular?
C:\Users\adm\AppData\Roaming\Adobe\InDesign\Version 19.0-J\zh_CN\Find-Change Queries\Text

 

There are also shortcuts stored in the path
C:\Users\adm\AppData\Roaming\Adobe\InDesign\Version 19.0-J\zh_CN\InDesign Shortcut Sets

 

Workspace Path
C:\Users\adm\AppData\Roaming\Adobe\InDesign\Version 19.0-J\zh_CN\Workspaces

 

PDF Export Template Path
C:\Users\adm\AppData\Roaming\Adobe\Adobe PDF\Settings

 

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

I saw this.
alert(app.scriptPreferences.version);
Returns 19.5

Maybe there's no way to get “Version 19.0-J” directly.

 

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
LEGEND ,
Feb 18, 2025 Feb 18, 2025
quote

I saw this.
alert(app.scriptPreferences.version);
Returns 19.5

Maybe there's no way to get “Version 19.0-J” directly.

 

By @dublove

 

Why do you want to know - from within currently run version - what other versions are installed? 

 

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
Guide ,
Feb 18, 2025 Feb 18, 2025

I don't want to talk about other versions, I just want to know some paths to the current version.

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
LEGEND ,
Feb 18, 2025 Feb 18, 2025

I'm pretty sure, that path to scripts panel should return "19.0-J" - as long as you're running your script from this version. 

 

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
Guide ,
Feb 18, 2025 Feb 18, 2025

yea
It should all be reachable now.
The PDF Export Template Path is unchanged.

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
Guide ,
Feb 18, 2025 Feb 18, 2025

Next, how to find
Whether the scripts'filename  contain  [Ctrl+Alt+W]  that the directory by "C:\Program Files\Adobe\Adobe InDesign 2024\Scripts\Scripts Panel\Samples\JS.lnk" pointed to .

point to.jpg

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
LEGEND ,
Feb 18, 2025 Feb 18, 2025

That is rather defined in the preferences - keyboard shortcuts file.

 

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
Guide ,
Feb 18, 2025 Feb 18, 2025
LATEST

I want to read the script's name(Vertion【Ctrl+Alt+Q】.jsx) .

If it contains【.+】 , and then go and modify the keyboard shortcuts file(ID_shortcut_CC.indk).

 

 

 

 

	<shortcut>
		<action-id value="0xff000000 + 54" name="脚本:应用程序:Samples:JST.lnk:Vertion【Ctrl+Alt+Q】.jsx"></action-id>
		<context>DefaultContext</context>
		<string>Ctrl+Alt+Q</string>
	</shortcut>

 

What's 54 here, the 54th script? What's the order of precedence it's based on?

I counted, and I only have 47 scripts, too.
That's strange.

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
Guide ,
Feb 17, 2025 Feb 17, 2025
I learned.
It's so not easy.
alert(
app.scriptPreferences.scriptsFolder.parent.parent);
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