3 Replies Latest reply on Aug 7, 2013 2:18 PM by 131772el

    help in foontone

    131772el

      Hello!

      My name is Eliezer, and I do not speak English.

      The discussion is translated with Google Translate ...

       

       

      Aqua your generous assistance:

      I wrote this script:

       

      var myname="החלת הגדרות";

      try{

      app.doScript (myscript,ScriptLanguage.JAVASCRIPT, undefined, UndoModes.ENTIRE_SCRIPT, myname);

      function myscript(){

      //שמור למשתנים נתוני סרגל מקוריים

      var my1=app.activeDocument.viewPreferences.properties;

      /*************אפס כל הסרגלים והמידות לפוינטים**********************************************/

      app.activeDocument.viewPreferences.typographicMeasurementUnits = MeasurementUnits.points;

      app.activeDocument.viewPreferences.horizontalMeasurementUnits = MeasurementUnits.points;

      app.activeDocument.viewPreferences.verticalMeasurementUnits = MeasurementUnits.points;

       

       

      var my2=app.activeDocument.footnoteOptions.properties;

      app.activeDocument.viewPreferences.properties=my1;

       

       

      for (var a=1;a<app.documents.length ;a++){

      //שמור למשתנים נתוני סרגל מקוריים

      var my3=app.documents[a].viewPreferences.properties;

      /*************אפס כל הסרגלים והמידות לפוינטים**********************************************/

      app.documents[a].viewPreferences.typographicMeasurementUnits = MeasurementUnits.points;

      app.documents[a].viewPreferences.horizontalMeasurementUnits = MeasurementUnits.points;

      app.documents[a].viewPreferences.verticalMeasurementUnits = MeasurementUnits.points;

      app.documents[a].footnoteOptions.properties=my2;

      app.documents[a].viewPreferences.properties=my3;  //החזר להגדות מקור את הסרגלים

         }

      alert ("בוצע");

      }

      }catch(e){myscript()};

       

       

       

       

      And he works not good.

      Color and settings of the line before footnotes does not change. (Only the tint of his variable).

       

       

      What mistake?

       

       

      Thank you very much.

        • 1. Re: help in foontone
          TᴀW Adobe Community Professional & MVP

          Hi Eliezer,

           

          I think the reason is that properties that require accessing

          sub-properties are not stored in your variable my2. Only the first level

          of properties are. So (I suspect) that if you run the following line

           

          app.activeDocument.footnoteOptions.properties.toSource()

           

          you'll find that any properties which require a "resolve" command won't

          get applied.

           

          אריאל

          1 person found this helpful
          • 2. Re: help in foontone
            TᴀW Adobe Community Professional & MVP

            Hi Eliezer,

             

            I think the reason is that properties that require accessing

            sub-properties are not stored in your variable my2. Only the first level

            of properties are. So (I guess) that if you run the following line

             

            app.activeDocument.footnoteOptions.properties.toSource()

             

            you'll find that any properties which require a "resolve" command won't

            get applied.

             

            Ariel

            1 person found this helpful
            • 3. Re: help in foontone
              131772el Level 1

              Thank you

              Yes, that appears with the "resolve" does not work ...

              Is it possible at all to do this comfortably?

               

               

              Or it would require to import all color swatches, and types of lines, the first document,  to others ...