Is it possible to merge the 7 files into ONE where all the
"duplicated" names are merged into one:
Meaning, for example if image A00166 is also in textfile 2 and 4 it
should be repeated only 1 time into the "new merged" textfile.
And of course if the name of the image is only in one of the files
it should also be in the "new merged" textfile.
Many thanks for any idea's
Jan,
You're lucky. The "sortarray" command in the version of
Satimage.osax that the latest non-public download of Smile installs
(you have to ask me the URL if you aren't subscribed to SUL) supports
a new "with unicity" parameter, which suppresses any doublon (and
sorts the list.) So you would do something like:
set list1 to paragraphs of (read file1)
set list2 to paragraphs of (read file2) etc
then:
set biglist to list1 & list2 & list3 etc
set uniqlist to sortarray biglist with unicity
set applescript's text item delimiters to return
set finaltext to uniqlist as text