9 Replies Latest reply on Sep 23, 2009 7:01 PM by dhishok

    find inline objects and apply object styles...

    dhishok Level 1

      Hi Eveyone,

       

      I am trying to find placed inline rules and apply object styles through javascript. Because we need some baseline shift to those rules. I getting some error while find the rules. FInd the syntax below,

       

      //---------------------

      app.findObjectPreferences=app.changeObjectPreferences=null;
      app.findChangeObjectOptions.properties =
      {
        objectType: ObjectTypes.unassignedFramesType
        };
      app.findObjectPreferences.strokeWeight=1;
      app.changeObjectPreferences.appliedObjectStyles=app.activeDocument.objectStyles.item("WOL" );
      app.activeDocument.item(0).changeObject();

      //-----------------------

       

      Can anyone look into this help for me. Thanks in advance.

       

      Regards

      Thiyagu