How to get day of yesturday?
quite simple but you need to use a variable for the current date to get the weekday of it
set yesterday to (current date) - 60 * 60 * 24
get weekday of yesterday
Or, if you like brief:
weekday of ((current date) - 1 * days)