Back

If your email is not recognized and you believe it should be, please contact us.

  • You must be logged in to reply to this topic.Login

Working with Layers, Pages, and PageItems

Return to Member Forum

  • Author
    Posts
    • #96571

      Hello

      The document I’m working on has three layers and on each page, there is one text frame in each of the three layers. I’m writing a script to change the contents of these text frames for the active page.
      For the page part, I’m using this code:
      mypage = myindesign.ActiveWindow.ActivePage
      For selecting and naming each text-frame in its appropriate layer, I thought of using some sort of loop to check for identifying characteristics of these text-frames(such as contents, table row count, etc) or checking the “textframe.itemlayer” property of each text-frame and then writing the entire code in that loop, but it seems like an unnecessarily complicated code.
      So, I was thinking if there was a property I don’t know of, that could specify the page AND layer of a text-frame. for example:
      mytextframe1 = mypage.layers.item”layer1″.textframes.item(1)
      Or something like that.

      Thanks

    • #96920

      I read in another topic you seem to be able to write “not-easy-to-code” scripts!

      So I think you just need here more researches, more readings and more tests/errors/debuggings!

      … But you’re in the right direction with terms as “active page”, “text frame” and “layer”.

      Good luck!

      (^/) ;-)

Viewing 1 reply thread
  • You must be logged in to reply to this topic.
Forum Ads