2 Replies Latest reply on Sep 28, 2009 12:50 PM by Harbs.

    [CS4][JS] Running script on IDS

    René Mølsted

      Hi all,

      I have a script that works just fine on InDesgin Client (IDC) but not on InDesign Server (IDS). I just can not see what the problem seems to be.

      When being run from IDC all occurences of 'ForcedBreak' are replaced by a next column character, but on IDS I get an <E00B>-character

      I've tried changing it to use GREP but that makes no difference.

       

      // Reset Find preferences
      app.findTextPreferences = NothingEnum.nothing;
      app.changeTextPreferences = NothingEnum.nothing;
           
      //Set the find options.
      app.findChangeTextOptions.caseSensitive = true;
      app.findChangeTextOptions.includeFootnotes = false;
      app.findChangeTextOptions.includeHiddenLayers = false;
      app.findChangeTextOptions.includeLockedLayersForFind = false;
      app.findChangeTextOptions.includeLockedStoriesForFind = false;
      app.findChangeTextOptions.includeMasterPages = false;
      app.findChangeTextOptions.wholeWord = false;
      
      // START SEARCH REPLACE //
      
      app.findTextPreferences.findWhat = "ForcedBreak";
      app.changeTextPreferences.changeTo = "^M";
      
      app.changeText();
      
      // Reset Find preferences
      app.findTextPreferences = NothingEnum.nothing;
      app.changeTextPreferences = NothingEnum.nothing;
      

       

       

      --

      René Mølsted