Use a smart rule to set a reminder

Hello,

I am looking for a way to set up a reminder in a smart rule.
My idea is to set up a smart rule that looks for documents with the tag “topay” and includes a reminder 5 days later to this document.

I could not find any actions that would make this possible.

Can anyone give me a hint of how I would accomplish this setup?

Best and many thanks

1 Like

Since there’s no action to set a reminder, you’d have to script that. Or perhaps @BLUEFROG has a better idea?

DEVONthink includes smart rules scripts to remove reminders and to add a reminder tomorrow or next week.

3 Likes

Ah, I found it, thanks.
How would I extend this script to personalize the email being send to myself when the reminders due date is up?

on performSmartRule(theRecords)
tell application id “DNtp”
set due_date to current date
set due_date to due_date + 3600 * 24 * 7
repeat with theRecord in theRecords
tell theRecord to make new reminder with properties {schedule:once, alarm:mail, alarm string:"email@emailadress.com", due date:due_date}
end repeat
end tell
end performSmartRule

I would like to add a personal text to the email and subject.

Best and many thanks

Email composition isn’t supported in reminder alarms. It’s only meant to send an item link to the provided email addresses.

Ah, I see. Thanks.

No problem.