I am working on a script that makes a list of names. Using the write command in AS I get a file named UnsortedImages.log containing all the names I need. I would like to get the list sorted using "sort" so that I can run a "uniq" after and get a list without repetitive names. I've tried this both as a list and as a string with returns in it. I then try to do a shell script of 'sort' and it just doesn't work! Can someone take a look and tell me if there is something I am missing?
Thanks in advance.
set RootFileFolder to ("HardDrive:Users:User:Scripts:PDF_Image_Counter")
set ImagesUsed_log to (RootFileFolder & ":ImagesUsed.log") as string
set ImagesUsed_POSIX to POSIX path of ImagesUsed_log
set ImagesSorted_log to (RootFileFolder & ":ImagesSorted.log") as string
set Imagessorted_POSIX to POSIX path of ImagesSorted_log
set sort_script to ("sort -o " & Imagessorted_POSIX & " " & ImagesUsed_POSIX)
do shell script sort_script
If someone wants the rest of the script, just let me know...
Chris Tangora
Daytona Beach News-Journal
386.681.2748
chris.tangora <at> news-jrnl <dot> com