1 Reply Latest reply on Apr 19, 2011 1:50 AM by Muppet Mark-QAl63s

    Delete an image and container in table using Applescript


      tell application "Adobe InDesign CS5"

      tell the active document

      set myLinks to every link whose file path ends with "aa.tif"

      repeat with thisLink in myLinks

      delete thisLink's parent's parent

      end repeat

      end tell

      end tell


      I tried to use this script to remove an image and it's parent frame from inside a table and I got this error: "Adobe InDesign CS5 got an error: Operation not permitted on unplaced content."


      Is there a way to remove the link and the container from inside a table?