1 Reply Latest reply on Nov 7, 2008 2:02 AM by (Robert_Tkaczyk)

    showing error in javascript for finding Text...

    dhishok Level 1
      Hi Everyone,

      Currently i am working in javascript for InDesignCS2. I am trying to find EmSpace, EnSpace, etc... and to change with fontStyle of "Roman". While doing this i got an error like Object does not support the property or method "findTextPreferences" Here my script below,

      app.findTextPrefrences = null;
      app.changeTextPrefrences = null;

      app.findChangeTextOptions.includeMasterPages = true;
      app.findChangeTextOptions.caseSensitive = true;
      app.findChangeTextOptions.wholeWord = false;

      app.findTextPreferences.findWhat = "^>";
      app.changeTextPreferences.fontStyle = "Roman";
      app.documents.item(0).changeText();

      But this working fine in InDesignCS3. Please help me for this.

      Thanks in advance
      Thiyagu