0 Replies Latest reply on Sep 5, 2012 3:27 AM by Nav_alm

    scrollable bar content length issues

    Nav_alm Level 1

      Hi friends,

       

      Below code get the content within the scrollable bar, but when i use "nav_scroll_text.contents.length" it show length is '1' but actual length is more, but it display all content, Please help me to solve this issue

       

      for(var i  = 0; i <app.activeDocument.rectangles.length; i++) {

        

             var nav_scroll_text = app.activeDocument.rectangles[i].textFrames.everyItem();

                    

             var nav_scroll_text_next = nav_scroll_text.contents;

                    

             alert( nav_scroll_text.contents);

           

             alert(nav_scroll_text.contents.length);

           

              var nav_scroll_text = app.activeDocument.rectangles[i].textFrames.everyItem();

            

              var nav_scroll_text_next = nav_scroll_text.contents;

            

              if(nav_scroll_text_next != '') {

                

                  nav_text_frame_include_scroll_bar = true;

                

              }

            

      }

       

      Thank you,

       

      [ Nav ]