Renaming files using a list of names in a txt or csv file
Hello everyone,
I'm trying to use AppleScript (although I'm a total noob to it) to rename the files in a folder (if possible using something like this - set folder to choose folder) to coincide to a list of names (in a txt or csv - can be any extension needed).
To paint the picture clearer I'll have something like this
| Files_as_they_are | Files_renamed |
|---|---|
01.mkv | Valar Dohaeris.mkv |
| 02.mkv | Mhysa.mkv |
| ... | ... |
Here is what I've tryed so far : (some point through the night I've tryed to repeat part of the process thus the "fcount" but the result was even worse)
set theFolder to choose folder
set ep to {"Valar Dohaeris", "Dark Wings, Dark Words"}
set fcount to 1
tell application "Finder"
set name of file fcount of theFolder to item fcount of ep
end tell
set fcount to fcount + 1
Tnx in advance...