<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Apple-Script on /var/log/janio</title><link>https://devops.sarmento.org/en/tags/apple-script/</link><description>Recent content in Apple-Script on /var/log/janio</description><generator>Hugo</generator><language>en</language><lastBuildDate>Sat, 11 Apr 2026 11:31:28 +0000</lastBuildDate><atom:link href="https://devops.sarmento.org/en/tags/apple-script/index.xml" rel="self" type="application/rss+xml"/><item><title>Automatically deleting emails in Apple Mail with AppleScript + launchd</title><link>https://devops.sarmento.org/en/posts/automatically-deleting-emails-in-apple-mail-with-applescript-and-launchd/</link><pubDate>Mon, 30 Mar 2026 20:24:00 +0000</pubDate><guid>https://devops.sarmento.org/en/posts/automatically-deleting-emails-in-apple-mail-with-applescript-and-launchd/</guid><description>&lt;p&gt;My inbox is always full of notifications with subjects like &lt;code&gt;[Ticket ID: 12345] Ticket Update&lt;/code&gt;. They&amp;rsquo;re useful for a few hours and then become noise. These aren&amp;rsquo;t emails that need to be archived, replied to, or revisited, so they just end up taking up mental space.&lt;/p&gt;
&lt;p&gt;Deleting them manually is the kind of small task that never becomes a priority, but silently costs you in distraction. So I decided to treat it like any other recurring problem: automate it locally, without relying on external services, no &lt;em&gt;webhooks&lt;/em&gt;, and no integrations. The idea is to periodically run a script that moves to the trash any &lt;a href="https://devops.sarmento.org/experiencias-com-mensagens-subliminares/"&gt;messages&lt;/a&gt; whose subject matches a specific pattern and that are older than 48 hours.&lt;/p&gt;</description></item></channel></rss>