1 Reply Latest reply on Jun 11, 2017 6:05 AM by pixxxel schubser

    Calling an object by name

    andyf65867865

      I tried to rename a text object like "text1" in layers palette,

      save document,

      and then I try to execute the script:

       

      var myDoc = app.activeDocument;

      var textFrame = myDoc['text1'];

      textFrame.contents = "111111111";


      I get an error

      Безымянный.png

       

      How to fix it?