Why this fails?
set testing to {"aalskj", "baslkjdf", "cdf"}
if "abcdef" contains any item in testing then beep
Why this fails?
set testing to {"aalskj", "baslkjdf", "cdf"}
if "abcdef" contains any item in testing then beep
Assuming that you do not want the posted routine to beep,
set testing to {"aalskj", "baslkjdf", "cdf"}
set testStr to "abcdef"
set myResult to false
repeat with oneItem in testing
set myResult to myResult or (testStr contains oneItem)
end repeat
if myResult then beep
set testing to {"aalskj", "baslkjdf", "cdf"}
if testing contains "aalskj" then beep