Hace tiempo que no uso AppleScript y no consigo codificar un scriptque necesito
Lo que estoy tratando de hacer:
lista1: día laborable {"Monday", "Friday", "Saturday", "Sunday"}
elemento a encontrar currentDay : set currentDay to weekday of (get current date) as text
(básicamente quiero comprobar si estoy trabajando hoy o no para ejecutar otro script)
set currentDay to weekday of (get current date) as text
set workingdays to {"Monday", "Friday", "Saturday", "Sunday"}
set imworking to false
repeat with a from 1 to length of workingdays
set theCurrentListItem to item a of workingdays
if theCurrentListItem = workingdays then
set imworking to true
else
set imworking to false
end if
end repeat
theCurrentListItem y currentDay \= "Lunes" por lo que si theCurrentListItem = workingdays no es cierto