3 Replies Latest reply on May 23, 2010 8:56 PM by Fred Goldman

    [JS] findChangeObject search document

    René Mølsted Level 1

      Hi all,

      I need to set the 'Search' setting to 'Document' and NOT 'Selection' in my script.

      app.findObjectPreferences = NothingEnum.nothing;
      app.changeObjectPreferences = NothingEnum.nothing;
      app.findChangeObjectOptions.properties =
      {
        objectType: ObjectTypes.graphicFramesType,
        includeFootnotes: false,
        includeHiddenLayers: false,
        includeLockedLayersForFind: false,
        includeLockedStoriesForFind: false,
        includeMasterPages:false,
        objectType:1179076211
      };
      
      app.findObjectPreferences.appliedObjectStyles = "Style 1";
      app.changeObjectPreferences.appliedObjectStyles = "ImgStyle";
      
      app.activeDocument.changeObject();
      

       

      --

      René Mølsted