A script to automate reminders

I want to start using daylite. And I also want to start using dt3 and dittg again. But I need to get my tasks in ddtg and dt3 to daylite since daylite has the more total encompassing display for todo, calendar, notes etc. (not the best notes really but dt3 will take care of that.)

So in dt3 while I can 1) make a note 2) use the built in script to send it to reminders,
I may forget and all is gone or lost.

So it would be convenient if I could create a note in dt3 and save it in my TASKS group and have that note automagically become a reminder in apple reminders.

The iPhone is different. On the iPhone and iPad I have to create tasks and todos directly in apple then review them and continue the work with saving letters and pdfs and things in DT3

Thanks all for participating,

J

ā€œMyā€ script in this response will do exactly that for you if you set up an appropriate smart rule :relieved: you could even set it up to run e.g. hourly so long as you use the rule format I suggested (setting a custom metadata ā€œbitā€) in the same response. Let us know whether it works for you :slight_smile:

working on it now. Have run it and the 32 tasks in the inbox have moved to the smart ruleā€™s folder.

haha

trying now to modify the app for my tasks and quotes group is where it will look.

oh now I get it. The smart rule needs to be modified to change the group. cool.

So as I see it, when I add a note into my defined group that note is sent to this group as defined by the smart rule.

image

how long do they remain in that folder? Are they supposed to become tasks in the Reminders app?

Thanks

I donā€™t have a preferences/data section?

Iā€™ve just looked, custom metadata is only available in the Pro and Server versions. We can work without.

Iā€™m not sure what youā€™re doing with your smart rule though - please post a screenshot of it

@Blancā€¦ Thank you and others who worked on the Auto-Add as Reminder script.

It works as advertised for me with one issue: The year of the Due Date defaults to 00. Iā€™m sure there is a minor update that will fix this, but Iā€™m having no success in finding it. Your assistance will be greatly appreciatedā€¦thanks.

Hi :slight_smile: there are a couple of scripts in this rather long thread ā€“ could you please link to the specific script you are using or feel free to simply re-post the script itself here. I will then happily take another look at it, although I will not be able to give you a helpful response before tomorrow evening.

Thank you for your replyā€¦

I download and installed the file Auto-Add as Reminder.zip you provided in post number 11.

Iā€™ll check that asap; Iā€™m away from my Mac, but will do my best to look into it tomorrow evening

No rush at allā€¦

Are you running the script from a smart rule, and if so, is it embedded in the smart rule? The last code block in the script is known not to work when embedded, so the script needs to be run externally (so first save the script to ~/Library/Application Scripts/com.devon-technologies.think3/Smart Rules, the set the smart rule to run that external script). Try that, please - if you are still not successful, Iā€™ll delve more deeply.


Edit:
Actually, I think the code is probably pretty crappy; you could replace

set theNewDate to (date string of (current date))
set theDueDate to my convertDate(theNewDate)
set theDueDate to theDueDate + theDelayValue

with

set theDueDate to (current date) + theDelayValue

and remove the last code block (the one beginning onConvertDate(theNewDate)). The script should run embedded then.

Edit of the editā€¦: ah, no, I did it that roundabout way so that you could determine the reminder time in addition to the date. So disregard the edit (which I will leave, so I can remember next timeā€¦) and just follow the first piece of advice in the post.

I am, in fact, running the script externally from a smart rule and the script, Auto-Add as Reminder, is located in the folder, ~/Library/Application Scripts/com.devon-technologies.think3/Smart Rules.

The Smart Ruleā€¦

Hereā€™s what a Reminder just created looks likeā€¦

image

It works here; Iā€™m using a different regional setting however.

Please could you post the result of this script (run from script editor):

set theDelayValue to (1 * weeks) + 28800
set theNewDate to (date string of (current date))
set theDueDate to my convertDate(theNewDate)
set theDueDate to theDueDate + theDelayValue
return theDueDate

on convertDate(theNewDate)
	return date theNewDate
end convertDate

image

and return (current date)?

And pls could you post a screenshot of your Language & Region settings in system preferences?

You have customised your regional settings to not include the year in the full date (in the window you posted see Advanced > Dates > Full); as such, current date does not return a year, which is why no year is included in the due date, which then defaults to 00.

Youā€™re quite correct of course. I thought I had satisfied the year requirement because the two digit form of the year is showing hereā€¦

image

Further checking of the full date format shows no year as you suspected. I have added the year and all is well.

Thank you so much for the help you providedā€¦with this script and untold other scripts you have made available to the community.

1 Like

Youā€™re most welcome :slight_smile: