You can customize the foldername for the images by changing the line
var linkedimagesfolder = "links";
To collect to a copy to a new folder first save your document, then save it to a new folder and execute this script. Let the script set the paths of the linked items to the new folder and again save the document.
Under Windows-based-Systems there is a Problem with Networkshares and the assigned drive-letters. Illustrator always adds the network-path to the drive-letter of the documents, so Illustrator claims the file does not exist. To solve the Problem you have to change the variables (arrays)
network_replace. Remember to write it the correct way.
\\Server\Folder\Subfolder must be
Also remember to put a backslash
\ infront of
|wr-collect.js||0.5||15.11.2005||10 and higher||Wolfgang Reszel|
The same script is also aviable for InDesign CS/CS2:
Installation InDesign CS:
The same script is also aviable for InDesign CS3 and CS4: