Ok awesome, thanks for clearing that up, very helpful. All the scripts are working now, i think that i was doing the save/compile part in the wrong order.
Ok, so say that I send out an email to Fred today and I expect Fred to respond in two days. So I’m going defer my action to check his response for two days. I’m also going to put this email in a project and/or context to organize it out of my inbox, but I’m not sure if I’ll definitely see it because I don’t always check the context or project I’m sending it to every day. I do, however, check my flagged items every day. So I want to make an keyboard shortcut with Keyboard Maestro that will allow me to apply this kind of script to that specific action to flag the item so I will definitely check his response in two days. So I’ll hit an keyboard shortcut before I finish processing out of the inbox, so that this task will be flagged when its deferred date is reached in 2 days (regardless of what project or context it is in).
Does that make sense?
Also, I’m planning to adjust these scripts for some different instances with different timeframes, so I’ll write down the changes that seem to make sense here to make sure I’m thinking about it right.
For the Due date script, for example…. This is what you posted:
set flagged of every flattened task of the_project whose ¬
((due date > two_days_s_date) and (due date < two_days_f_date)) to true
But I can also write in a different number wherever it says “two”. So, for example, I can change it to:
set flagged of every flattened task of the_project whose ¬
((due date > three_days_s_date) and (due date < three_days_f_date)) to true
Or, I can delete one part of it to make it so that it will flag a greater range of dates. For example,
set flagged of every flattened task of the_project whose ¬
(due date < two_days_f_date)) to true
This will make it so that it will flag the action if the due date is 2 days away or 1 day away as well, right?
Do I need to change this higher section too? Or any other sections? VVV
set two_days_s_date to today_date + (2 * days)
set two_days_f_date to today_date + (3 * days)
I’m noticing that the Defer script is different from the due script here, as it says:
set today_f_date to today_s_date + (1 * days)
I’m confused about the distinction between f_date and s_date and also about the significance of 1 * days. Why is this section different for these scripts? And is this something that I would need to change if I wanted to change the date of the due/defer dates in the scripts?