1 Reply Latest reply on Jun 1, 2012 12:43 AM by Laubender

    Button.convertToObject()

    Pierre-RAFFA

      Hi all,

      Is it possible to get the pageItem created by Button.convertToObject() ?

      It's stange to have to loop on all pageItems before and after this action and compare this two arrays in order to get the new pageItem...

      Thanks.

       

      Regards,

      Pierre RAFFA

        • 1. Re: Button.convertToObject()
          Laubender Adobe Community Professional & MVP

          @Pierre – you could try access the last pageItem of all your page items after converting the button:

           

          myButton.convertToObject();
          var convertedButton = app.documents[0].pageItems[-1];
          

           

          Uwe

           

          //EDIT:

          P.S. Argh: one still could  access the advanced text editor only *after* posting the message…

           

          Message was edited by: Laubender