Hi,
Please Help!!
I’m trying to search a string using a list but I know my syntax is not correct.
set thefile to choose file
set acceptedissuelist to {"01/04/2007", "01/05/2007", "01/06/2007", "01/07/2007", "01/08/2007", "01/09/2007", "01/10/2007", "01/11/2007", "01/12/2007"} as string
set f to (open for access thefile with write permission)
set theText to read f
close access f
theText
if theText contains acceptedissuelist then
display dialog "accepted issue date!"
end if
I know that at the moment that my string has to contain every item of acceptedissuelist else it won’t do anything but I need it to do something if it contains any item of acceptedissuelist.