This is so odd it must be a syntax/format problem. I have the following within a ‘tell’ finder block:
set file_list to items of folder pdf_folder
repeat with t_item in file_list
display dialog t_item as string
set file_info to info for t_item
display dialog the name of the file_info
end repeat
The display shows the correct path but the ‘info for’ statment fails saying the file cannot be found. Although the file exists Applescript can’t have it both ways. Either the file can be found by both ‘items of folder’ and ‘info for’ or neither. Can anyone spot my error? TIA.
Thanks for the explaination. I can only shake my head wondering at the reasoning behind that but then I guess that is a “Finder” issue not an Applescript obscurity. Applescript has to deal with whatever it is given.