0 Replies Latest reply on Apr 3, 2009 3:33 AM by (René_Mølsted)

    [JS] Change inline graphics object style

      Hi all,
      I'm trying to change the object style of inline graphics.

      This doesn't seem to work ....

      ###### CODE BEGIN ######
      app.findObjectPreferences = NothingEnum.nothing;
      app.changeObjectPreferences = NothingEnum.nothing;
      app.findChangeObjectOptions.properties =
      {
      objectType: ObjectTypes.graphicFramesType,
      includeFootnotes: false,
      includeHiddenLayers: false,
      includeLockedLayersForFind: false,
      includeLockedStoriesForFind: false,
      includeMasterPages:false
      };

      app.findObjectPreferences.appliedObjectStyles = "HeaderStyle";
      app.changeObjectPreferences.appliedObjectStyles = "NewHeaderStyle";
      app.activeDocument.changeObject();
      ####### CODE END #######

      --
      Rene