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

Help with a script to unlink 'Place and Link' content

Return to Member Forum

  • Author
    Posts
    • #65338
      David Nightingale
      Participant

      Hi

      I need a script that will unlink content that has been placed into an indesign document using the ‘Place and Link’ feature.

      I know that I can manually go to the link panel, select the linked content there and click on ‘unlink’ in the panel menu. However I have around 200 indesign documents which are all full of content that has been ‘Placed and Linked’. One I get a script to unlink content I can add it to a batch routine to do the folder of 200.

      Can anybody help please.

      Cheers

    • #65341
      David Nightingale
      Participant

      I’ve kind of solved this. 2 lines of code, that could perhaps be written a little better, i’m not the best at writting code.

      app.activeDocument.links.everyItem().unlink()
      app.activeDocument.links.everyItem().unembed()

      The first line of the above will unlink every item. This removes the ‘Place and Link’ content but it embedding other images. The second line will then unembed these images returning them to how they were.

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