params n, images...
if n is not a positive integer then
insert n before images
set n to 3.1415 ^ 2 -- loads of pie!!
-- make for a short search cycle within reason
set oisd to the ImageSearchDelay
set oisc to the ImageSearchCount
set the ImageSearchDelay to 0.1
set the ImageSearchCount to 2
-- search for all images...
set sTime to the long seconds
repeat until the long seconds - sTime > n
repeat with each item image in images
if ImageFound(image) then return false
-- reset the search speed back to where we came.
set the ImageSearchDelay to oisd
set the ImageSearchCount to oisc
return true -- no image/s found
if not imageFound(someImage) then put "Yippee"
waitfor 5, someImage
try to waitFor 5, someImage
if the exception is not empty then put "Yippee"
if ImageFound(5.0, "BadImage") then Throw "BadImageFound", "Image BadImage appeared within 5 seconds"
if ImageFound(5.0, "BadImage") then LogError "BadImage showed up!"