autocollect images

Does anyone knows what I am doing wrong, it’s something with
‘set image_list to every file in image_folder as alias’

tell application “Finder”
activate
beep integer 1
display dialog “Show the imaages you want to collect” buttons {“Cancel”, “OK”} default button 2 with icon 2
set image_folder to choose folder
set image_list to every file in image_folder as alias
set the file_list to get every file of chosen_folder whose name ends with “.tiff or .eps of .jpg”
set text_list to every file in text_folder as list
set thecounter to count items in file_list
repeat with i from 1 to thecounter
set thefile to get item i of file_list as alias
set thename to get name of thefile as text
end repeat
end tell

thx

Another solution is to use the phrase “alias list”
set image_list to every file in image_folder as alias list

By saying “every file” you’ve already turned them into a list. Then you say “as alias,” which can only apply to 1 item.

If you add any more criteria, then you have to use parenthesis as well:
tell application “Finder”
set theFolder to (choose folder)
set theList to (every file of theFolder whose file type is "PDF " or name extension is “pdf”) as alias list
end tell