collecct 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

If I understand, this will do what you need…

tell application “Finder”
activate
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 (name of every file in image_folder whose name ends with “.jpg” or name ends with “.eps” or name ends with “.tiff”)
end tell