4 Replies Latest reply on Feb 23, 2012 7:07 AM by Laubender

    Placing graphic frame straigh onto a page, how? JS

    TᴀW Adobe Community Professional & MVP

      Let's start with this baloney:

       

      Error: Invalid value for parameter 'at' of event 'add'. Expected

      LocationOptions enumerator, but received AFTER.

       

      That's the error I get when I try to add a rectangle straight onto my

      target page as per instructions in the documentation. Here's my attempt

       

      myTextFrame = myDoc.textFrames.add(myTextLayer, LocationOptions.AFTER,

      myPage, );

       

      Funnily, AFTER or BEFORE through this error, but AT_BEGINNING doesn't.

      Yet the reference object (in this case myPage) is only respected for

      AFTER or BEFORE.

       

      What am I doing wrong?!?

       

      Thanks,

      Ariel