AppleScript find items in list
Solution 1:
(basically I want to check if I'm working today or not in order to run a another script)
Here is a different way of coding it that works:
Example AppleScript code:
set currentDay to weekday of (current date) as text
set workingDays to {"Monday", "Friday", "Saturday", "Sunday"}
set imWorking to false
repeat with thisDay in workingDays
if contents of thisDay = currentDay then
set imWorking to true
exit repeat
end if
end repeat
if imWorking then
-- # Do other stuff here.
end if