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

Relink images based on page number

Return to Member Forum

  • Author
    Posts
    • #1192353
      Marco W
      Member

      Hello!

      is it possible to write a script which relinks images based on a pagenumber?

      For example, on page 10 there are 3 images(e.g. test-1.jpg, test-2,jpg, test-3.jpg), now the script should search (e.g. in links) for images which names contain the page number, and if found relink it. So, if there are images in the link folder which names are 10-1.jpg, 10-2.jpg or 10-3.jpg then relink them with these…

      Thanks, Marco

    • #14323855
      Jeremy Howard
      Participant

      That could definitely be done. You would just need to grab the “name” of each page so that you can use it to build the file path with.

      I believe that the method for getting a page’s “name” is simply thisPage.name

    • #14323833
      Peter Kahrel
      Participant

      > I believe that the method for getting a page’s “name” is simply thisPage.name

      Correct: a page’s page number/folio is its name.

Viewing 2 reply threads
  • You must be logged in to reply to this topic.
Forum Ads