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

GREP action depending on software language

New Here ,
Sep 02, 2018 Sep 02, 2018

Copy link to clipboard

Copied

Hi,

So I have a script containing this:

function retire_arabe() {

     app.findTextPreferences = app.changeTextPreferences = null;

     app.findTextPreferences.appliedLanguage = "Arabic";

     app.changeTextPreferences.appliedLanguage = "French: Canadian";

     app.activeDocument.changeText();

}

The problem is that the script needs to be used by me and one of my employee. I am using english InDesign, and she is using french InDesign. The script is not working on her software because the languages names are different  (Arabic = Arabe / French: Canadian = Français: Canadien). Is there any way that the script can be usable for both of us through some if/else, or do I really have to make two different scripts?

Thanks!

TOPICS
Scripting

Views

273

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 1 Correct answer

Community Expert , Sep 02, 2018 Sep 02, 2018

Try "$ID/Arabic" and "$ID/French: Canadian"

P.

Votes

Translate

Translate
Community Expert ,
Sep 02, 2018 Sep 02, 2018

Copy link to clipboard

Copied

LATEST

Try "$ID/Arabic" and "$ID/French: Canadian"

P.

Votes

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