Script slow processing search result

Are you running macOS 26 Tahoe?