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

Harvest URLs

Tagged: , , ,

Return to Member Forum

  • Author
    Posts
    • #64960

      Maybe there’s a little-known feature for this in ID, maybe not, but I would like to be able to harvest the URLs from an ID file into a list. Plain text is fine, or even HTML, but that’s ALL I want to pull out of this file. I have a client who sends a new brochure to me every few months, and they update the URLs a little each time (change in pids, etc.). I want to make a master list for them, with the expectation that they will update the master list and I can place that list in ID and reassign the URLs from there. I bet there’s a script for this. Your advice is greatly appreciated. Thanks!

    • #64961
      Anonymous
      Inactive

      How do the URLs present themselves? I mean, how are they formatted?

    • #64962

      Thanks for asking, Salieri. In text, they have character styles applied, which I could easily change, but those are word references, and not the URLs themselves. So, for example, the course title in text — Music Theory 101 — is linked to “https://online.school.edu/courses/music-theory-101?pid=xxxx”. The list I want to be able to create would have the URLs as they are presented in the Hyperlink Destination Options. That way, they could search and replace the pid numbers, which is generally the only thing that changes.

    • #64972
      David Blatner
      Keymaster

      I don’t think there’s any easy way to do this… you could probably harvest them (pull them out of InDesign) by exporting the file as HTML and then using a grep that strips out everything except hyperlinks. But that would just give you a list. There’s no way to easily update them by importing a list or something like that.

      Though yes, perhaps you could hire a scripter to write something that would do this.

      • #65001

        I thought about this, but of course, hoped there was something simpler. The list is what I need to be able to give to the client. Updating them by search-and-replace is something they can do, and then return the list to me. Thanks for your suggestion, David.

Viewing 3 reply threads
  • The forum ‘General InDesign Topics (CLOSED)’ is closed to new topics and replies.
Forum Ads