Delete a mail when checking apple reminder task

I need to delete an email (Apple Mail) associated with a task in Apple Reminders when checking that task as completed...I can´t figure it out

I need to delete an email (Apple Mail) associated with a task in Apple Reminders when checking that task as completed...I can´t figure it out

This is tricky. Clearly there is no "trigger" in KM that can detect when a reminder is "completed." (And that would be impossible since the reminder could be deleted from any device, not just from your Mac. Right?) So the short answer is no, this cannot be done. But everything is possible with KM, although sometimes "possible" means a lot of work that you won't be happy with.

You could, I think use KM (and/or AppleScript) to determine if a reminder is completed or not. This would have to be accomplished using polling every few seconds. That's not bad in itself. It would be easier if we hardcoded a single reminder to be checked, but I think what you want is for KM to detect all reminders all the time. So basically, I think you want KM to fetch a list of all reminders every few seconds, determine if they are completed, then determine if the corresponding email has already been deleted, and if not, then delete it.

I think it could be possible. But I don't think I want to write this up myself. I don't like writing macros that auto-delete a wide variety of things.

You should consider submitting the idea to Apple.