TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Use scripts as rule actions in Mail on Mac

41 pointsby Bondi_Blueover 2 years ago

10 comments

plasticbugsover 2 years ago
Before the age of real smartphones I created a Rube Goldberg-like workflow that listened for emails from my Nokia phone. The subject needed to contain a song and artist. Then the script pasted that subject line into iTunes. Then it would call my phone back via SkypeOut and as my phone was ringing it would press play in iTunes so I could hear my song through my phone. I called it Dittybot. My original blog post is gone, but here’s an Engadget article about it: <a href="https:&#x2F;&#x2F;www.engadget.com&#x2F;2005-06-17-dittybot.html" rel="nofollow">https:&#x2F;&#x2F;www.engadget.com&#x2F;2005-06-17-dittybot.html</a>
dalerobertsover 2 years ago
At my university we use Moodle and that lets me setup a page where students can schedule one-on-one appointments with me (during office hours). When a student books a time, Moodle sends me an email with the details.<p>I use a rule and an Applescript to scrape the details from the email and put the booking into my calendar.
mikeceover 2 years ago
Looks cool; what kinds of automation-via-email hacks have been done with this?
评论 #33351494 未加载
评论 #33351236 未加载
评论 #33349670 未加载
hhasover 2 years ago
Notes:<p>1. Apple Mail has had this feature for the last <i>20 years</i>. If macOS users to whom that feature is of interest are only now realizing it exists, this speaks volumes for Apple’s documentation and marketing.<p>2. The page says you can use AppleScripts as rule actions. It never tells you <i>how</i>. No sample scripts to use or learn from. No links to the documentation you’ll need to write your own.<p>Here’s a better third-party introduction from 2005(!) which includes a couple rule action examples:<p><a href="http:&#x2F;&#x2F;preserve.mactech.com&#x2F;articles&#x2F;mactech&#x2F;Vol.21&#x2F;21.09&#x2F;ScriptingMail&#x2F;index.html" rel="nofollow">http:&#x2F;&#x2F;preserve.mactech.com&#x2F;articles&#x2F;mactech&#x2F;Vol.21&#x2F;21.09&#x2F;Sc...</a><p>TBH, after 6 years rusting in maintenance mode, all its documentation long buried in archive, and the department responsible eliminated entirely, I am surprised Apple would still want to draw any attention to AppleScript at all. They only set up the unwary for disappointment later, once they discover for themselves the platform is already a walking corpse. That is no way to sell product. Alas, post-Jobs Apple cares little for joined-up thinking, or even motivation to do a half-decent job.<p>Let’s hope the Shortcuts team can eventually make a half-decent success of their product, because AppleScript automation has zero future. That said, if Ventura Mail still can’t use Shortcuts as rule actions then it doesn’t bode look great for them either.
评论 #33359310 未加载
drexlspiveyover 2 years ago
Cloudflare&#x27;s Email Workers is entering open beta soon, you can trigger any function you want using email. <a href="https:&#x2F;&#x2F;blog.cloudflare.com&#x2F;announcing-route-to-workers&#x2F;" rel="nofollow">https:&#x2F;&#x2F;blog.cloudflare.com&#x2F;announcing-route-to-workers&#x2F;</a>
asdffover 2 years ago
One of the worst parts of Apple Mail is that they have entirely neglected the iOS version since the iPhone first came out. Its the same exact app afaik since iOS 1. No rules to make, not even colored flags, despite how powerful phones have gotten. My inbox stays polluted and unsifted until I open the lid on my macbook, it runs all these local rules and syncs to the email server, and my phone pulls the changes.
评论 #33353954 未加载
Bondi_Blueover 2 years ago
I thought it could be nice as a stand-in for an SSH Siri Shortcut action on iOS, because you don&#x27;t need to reach out to a static IP address. It is more dynamic to be able to send an email from your phone to your Mac regardless of what network your Mac is currently on (so long as your Mac is awake).
FrankBlackover 2 years ago
Back in the day we used to download files from certain FTP servers via an email with the correct terms. I never found it very interesting, but it was novel. It would have been much cooler had smartphones been around then.
xtiansimonover 2 years ago
What’s Python library substitute?
评论 #33357485 未加载
CharlesWover 2 years ago
Actual title: &quot;Use scripts as rule actions in Mail on Mac&quot;<p><i>You can attach an AppleScript script to a Mail rule. For example, you could have an incoming message trigger a script that copies information from the message and pastes it into a database that works with Script Editor.</i>
评论 #33354045 未加载