Yep, I'm sure this has been asked before, but is there a script out there which enables batch relinking files which contain the same data but have been renamed? (Win7, ID CS5)
Thanks in advance,
Andy
So sorry for the delayed reply Mark,
The files are in the same directory as before, and renamed in no particular pattern. So, I can't use some of the other renaming/relinking scripts I've found so far because they require a renaming pattern to be used, such as add a particular string, number, etc. What I'm looking for is a relinking script that would relink based on the file's data and ignore the new filename. Is something like this possible?
It may also be possible to just do some comparison… This may be enough I don't know?
var doc = app.activeDocument;
$.writeln( doc.links.firstItem().linkXmp.creationDate );
$.writeln( doc.links.firstItem().linkXmp.modificationDate );
$.writeln( doc.links.firstItem().linkXmp.creator );
$.writeln( doc.links.firstItem().linkXmp.format );
Hi,
never tried this before and I'm on a mac for the next weeks, but what about the console?
Say you've got both files, the original and the renamed one.
In AppleScript you can implement Unix-Commands like 'diff' or 'cmp' which compare two files, so if identical ... relink
There should be a simular DOS-command too. It's called 'comp' I think. Implementation in JavaScript is not as good, but a tmp-bat-file at least can be written and executed ...
North America
Europe, Middle East and Africa
Asia Pacific