3 Replies Latest reply on Jan 22, 2010 3:16 PM by Yuliaart

    Assign text to a text frame Indesign CS4 JC

    Yuliaart Level 1



      I have a little challenge. I assigned text to a text frame many times, but the line wouldn't work now. Could you help me with it:


      var myNumber = app.activeDocument.selection[0];

      if (myNumber instanceof Rectangle){
          myNumber.fillColor = "White";
      catch (e){
      alert ("Please create and select Rectangle");

      myNumber.contentType = ContentType.TEXT_TYPE;

      //myNumber = String ();
      myNumber.contents = "mamma";



      It wouldn't input my value into the frame (the pink line).


      Thank you very much for your help.