Does the script or action delete all linked files that are placed?
There are advertisements in the placed files, because there are a lot of such files to be processed, I want to delete all the placed files, is there a good way?
do you know how to select them by hand? it's as easy as running a script
- open the Links panel
- select all links
- click on the Go To Link button
I know this, but, I have hundreds of files and it's too slow to do it manually!
Use the script to select all the placed files, create an action to delete all the placed files with one click
edit the script that m1b wrote for you, instead of deleting a linked file by name, delete them all. Remove the condition that checks the name of the link
if ( doc.placedItems[j].file.name == name && ++count )
and if you don't want the alert (the popup window) remove this line as well
alert('Removed ' + count + ' placed items of "' + removeThis + '".')
I don't know anything about scripting languages, can you give me a complete code example