1 Reply Latest reply on Sep 2, 2018 4:24 AM by Peter Kahrel

    GREP action depending on software language

    Annabelle64594479 Level 1

      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!