Welcome Dialog

Welcome to the Community!

We have a brand new look! Take a tour with us and explore the latest updates on Adobe Support Community.


How do I set the default open software for InDesign scripts?

Participant ,
Nov 09, 2021 Nov 09, 2021

Copy link to clipboard

Copied

How do I set the default open software for InDesign scripts?

The original default script editor in adobe is not installed. Can't you open it with other software?

Is it extendscript toolkit software?

I don't want to use this. I want to open it with vs Code by default. How to set it?

TOPICS
How to, Performance, Scripting

Views

104

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
Participant ,
Nov 09, 2021 Nov 09, 2021

Copy link to clipboard

Copied

Prompt:

30323.jpg

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
Explorer ,
Nov 09, 2021 Nov 09, 2021

Copy link to clipboard

Copied

You can right-click on the script file in the desktop/folder and choose the default app/open with... and choose vs code. 
There is a check box to remember this setting for all files thereafter.
https://helpdeskgeek.com/how-to/how-to-change-the-default-program-to-open-a-file-with/

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
Participant ,
Nov 09, 2021 Nov 09, 2021

Copy link to clipboard

Copied

I know that.

I want to open it directly in the InDesign window with the default program

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
Participant ,
Nov 09, 2021 Nov 09, 2021

Copy link to clipboard

Copied

hi, you can choose default app and use below code to run your script

 

var file = new File('full path')
file.execute()

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
Participant ,
Nov 15, 2021 Nov 15, 2021

Copy link to clipboard

Copied

It's useless, like this script:insert 2019.jsx
------------------------------------------------------------------------------
var file = new File('D:/Program Files (x86)/T-Text Tool/VSCode/Code.exe')
file.execute()
app.selection[0].contents = "2019";

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 ,
Nov 10, 2021 Nov 10, 2021

Copy link to clipboard

Copied

The original default script editor in adobe is not installed

 

Hi @dublove,  If you are referring to adobe’s ExtendScript Toolkit, it is a 32-bit application and it may be your OS no longer supports 32-bit apps? On OSX you would need OSX Mojave or earlier to run Adobe ESTK, not sure about Windows.

 

Currently the best 64-bit option is Visual Studio Code with the ESTK extension installed:

 

https://code.visualstudio.com/docs#vscode

 

https://marketplace.visualstudio.com/items?itemName=Adobe.extendscript-debug

 

 

Screen Shot 12.png

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 ,
Nov 15, 2021 Nov 15, 2021

Copy link to clipboard

Copied

LATEST

"I want to open it directly in the InDesign window with the default program"

 

Hi dublove,

do you mean you want to open a script in InDesign's Scripts panel in VS Code directly?

I think this cannot work if the ExtendScript Toolkit App is installed.

 

EditScript.png

 

I would make it a two-step process:

[1] Show in Explorer

[2] Context menu of the selected file > Execute with VS Code

 

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