I had this script working before, but I moved it to another system and changed the folder alias's accordingly but I am getting an error message. It basically reads all the files in a folder and makes them into a list to add them to a render cue of my video compression software. I posted the script and the error message below. Does anyone know what it means or how to fix it?
Script:
tell application "Finder"
set Afolder to "MacintoshHD:Users:comcastcableesktop:Render" as alias
set a_list to every file in Afolder as alias list
repeat with i from 1 to number of items in a_list
set a_file to (item i of a_list)
tell application "Cleaner 6.5.1" to Add a_file
end repeat
end tell
Error message:
Can't make alias "MacintoshHD:Users:comcastcableesktop:Render:fanaxxessbump.wmv" into type «class alst». (-1700)
Script:
tell application "Finder"
set Afolder to "MacintoshHD:Users:comcastcableesktop:Render" as alias
set a_list to every file in Afolder as alias list
repeat with i from 1 to number of items in a_list
set a_file to (item i of a_list)
tell application "Cleaner 6.5.1" to Add a_file
end repeat
end tell
Error message:
Can't make alias "MacintoshHD:Users:comcastcableesktop:Render:fanaxxessbump.wmv" into type «class alst». (-1700)