3 Replies Latest reply on Oct 31, 2013 10:53 AM by Danny Noonan

    Find and Unlink Text Links [CS6] [JS]

    Danny Noonan Level 1

      We are getting InDesign CS6 documents. Most of these documents have .txt files placed as links. Does anyone have a script that will check an open document for txt links and if one or  more exists, unlink them. This seems to work, but I don't know what else it is unlinking...

       

       

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

       

      I don't really feel safe using this because other images or links I want to keep could be deleted with this. I would like to narrow it down to look for and unlink txt files only.

       

      I'd really appreciate any help! Thanks in advance!

       

      Danny