But it keeps telling me no result was returned.
- Code: Select all
set today to current date
set weekdays to {Monday, Tuesday, Wednesday, Thursday, Friday}
set weekends to {Saturday, Sunday}
tell application "IndigoServer"
if weekday of (current date) is in weekdays then
set value of variable "Weekday" to "true"
else if weekday of (current date) is in weekends then
set value of variable "Weekday" to "false"
end if
end tell