I have a script that builds a list of files and then opens those files. It’s worked fine for years but after updating from macOS12.1 to macOS12.6 it’s stopped working and I can’t figure out why. It will build the list of files successfully and open the first file but it does not open any additional files. The Replies do not report any errors and show each file being opened, but only the first file is actually opened.
Here is a simple version of the script.
tell application "Finder"
set Afolder to "Volumes:EOB Scans" as alias
set fl to every file in Afolder
repeat with f in fl
open f
delay 5
end repeat
end tell
Replies:
tell application “Finder”
get every file of alias “EOB Scans:”
→ {document file “SKM_658e22091906330.pdf” of disk “EOB Scans”, document file “SKM_658e22091908320.pdf” of disk “EOB Scans”, document file “SKM_658e22091908350.pdf” of disk “EOB Scans”, document file “SKM_658e22091908380.pdf” of disk “EOB Scans”}
open document file “SKM_658e22091906330.pdf” of disk “EOB Scans”
open document file “SKM_658e22091908320.pdf” of disk “EOB Scans”
open document file “SKM_658e22091908350.pdf” of disk “EOB Scans”
open document file “SKM_658e22091908380.pdf” of disk “EOB Scans”
end tell
Any help would be appreciated.