Hi
I’m struggling to achieve the following. Any help or pointers would be appreciated.
I have a folder full of images.
I have a document (TextEdit / Quark - doesn’t matter) which contains a list of most, but not all, of the filenames in the folder and the new filename (tabbed to the right of the old name) they should be getting.
oldfilename (tab) newfilename
oldfilename (tab) newfilename
oldfilename (tab) newfilename
etc
I need to go through every image in the folder,
set theImagesFolder to (choose folder with prompt "Select folder containing images.")
set Imagelist to every item of the theImagesFolder
check to see if each filename exists in my list and, if it does, change it to the specified new name.
repeat with u from 1 to the count of Imagelist
tell item u of Imagelist
[currently garbage!]
end tell
end repeat
The new filenames are unique but cannot be inferred from the old filename (i.e. it’s not a truncation or a find / change).
Thanks in advance for any assistance.
Mark
AppleScript: 2.1.2
Browser: Firefox 3.5.3
Operating System: Mac OS X (10.4)