I would like to use a list variable as input to AnyImageFound:
put (“image1”, “image2”, “image3”) into foo
if AnyImageFound (foo) then
But that doesn’t work–it tries to load “image1, image2, image3” as one string.
For now, I’m doing it this way:
repeat with each item in foo
if ImageFound (it) then
put it into foundImage
put true into imageWasFound
This works fine, but it’s slower than the seven-year itch.
Is there a better way? I can’t hard-code the arguments into the AnyImageFound statement, because they’re context-dependent.