Hi all,
In the following script I’m trying to read a comma-delimited file (a list of file names) and move those files from one folder to another. When I get down to the line “move …” the script errors out with "Finder got an error: can’t get file ‘path:to:filename.eps’ " … what’s wrong with this picture …?
set fileContents to read (choose file with prompt "Choose a comma-delimited text file")
set theText to result
set AppleScript's text item delimiters to ","
set theTextItems to text items of theText
set AppleScript's text item delimiters to {""}
theTextItems
tell application "Finder"
set theSourceFolder to (choose folder with prompt "Choose source folder") as string
set theDestination to (choose folder with prompt "Choose destination folder")
repeat with theEPSName in theTextItems
set theEPSFile to theSourceFolder & theEPSName
move file theEPSFile to folder theDestination
end repeat
end tell
Thanks, Alison