Skip to main content
Participant
September 2, 2018
Answered

GREP action depending on software language

  • September 2, 2018
  • 1 reply
  • 317 views

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!

This topic has been closed for replies.
Correct answer Peter Kahrel

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

P.

1 reply

Peter Kahrel
Community Expert
Peter KahrelCommunity ExpertCorrect answer
Community Expert
September 2, 2018

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

P.