Skip to main content
Participant
April 12, 2021
Question

Adobe Indesign Accessibility SCRIPT

  • April 12, 2021
  • 3 replies
  • 597 views

I am looking for a script to change my Paragraphe style to English, I know I had one for French, is their one that changes it to English. if so can you direct me to this script. Thank you

This topic has been closed for replies.

3 replies

Community Expert
April 12, 2021

Hi Sean,

I tested Rob's script successfully on the paragraph style that was applied to selected text.

 

But because I work with a German InDesign I had to change "English: USA" to "$ID/English: USA" in the code.

Before running the script make sure that you select a bit of text where your paragraph style is applied to that you want to change. What's your language version of InDesign?

 

Note: "$ID/English: USA" is the value that should work for all international language versions of InDesign.

 

Regards,
Uwe Laubender

( ACP )

Sean5EC8Author
Participant
April 12, 2021

Thank you for the quick reply, I work usually in french, this is for these certains times when I need to change my Advanced Character Format to English USA. I had for french, but now I need one to change it English USA. 

My designer tried it, it did not work. Wondering you can fix his scripts and send it back to me please. 

Does this help, I attach and image of the correct language. Thanks again both of you for the great work and help

 

rob day
Community Expert
Community Expert
April 12, 2021

There has to be a selection. In this case the selected text’s applied Paragraph Style is ID Default:

 

The script will change that Paragraph Style’s Language, but the text could be overridden so the style itself is changed, but the text may or may not depending on the overrides:

 

Community Expert
April 12, 2021

Hi Rob,

better use the international key strings for the value of appliedLanguage.

In this case:

"$ID/English: UK"

That would work even with my German InDesign.

 

Also possible:

"$ID/English: USA"
"$ID/English: USA Medical"
"$ID/English: USA Legal"

 

Regards,
Uwe Laubender

( ACP )

Sean5EC8Author
Participant
April 12, 2021

Rob I tried it in Indesign, it did not work 😞 May I ask if you know why.

Can yo let me know, its something would be awsome to have, as I do accessibility a lot. 

thank you for work guys

rob day
Community Expert
Community Expert
April 12, 2021

Do you get an error or does the language not change? The script expects a text selection and changes the applied paragraph style.

rob day
Community Expert
Community Expert
April 12, 2021

This would change the language of the insertion point’s Paragraph Style

 

 

 

 

try {
    app.documents.item(0).selection[0].appliedParagraphStyle.appliedLanguage = "English: USA"
}catch(e) {}  

 

 

 

Sean5EC8Author
Participant
April 12, 2021

Hello Rob, is it possible to create a entire file, so I can just pop into the script of indesign, I am not a coder. I would greatly apreciate that. Thank you

rob day
Community Expert
Community Expert
April 12, 2021