Steinway Posted January 2 Posted January 2 Michael Raphael created a workflow for creating a link from a selected Mac Mail (https://alfred.app/workflows/sepulchra/mail-link/). Any pointers on how I create an Apple Reminder with the link to the mail?
sepulchra Posted January 2 Posted January 2 It looks like Reminders can be scripted extensively using applescript: https://gist.github.com/n8henrie/c3a5bf270b8200e33591 It looks like the notes can be scripted as well. Steinway 1
Steinway Posted January 2 Author Posted January 2 16 minutes ago, sepulchra said: It looks like Reminders can be scripted extensively using applescript: https://gist.github.com/n8henrie/c3a5bf270b8200e33591 It looks like the notes can be scripted as well. Cool - thx. I'll give that a further look :-)
sepulchra Posted January 2 Posted January 2 Let us know how you get on. It looks like there are quite a number of parameters you could script and build a very useful workflow that many would be interested in. Steinway 1
Steinway Posted January 3 Author Posted January 3 Got the first version working It creates a reminder in 📥 Indbakke (change to your preferred folder) with the name of the sender and the subject of the mail. In the body of the reminder it pastes a link to the e-mail. From what I can find on Google, it is not possible to insert the link in the URL of the reminder... tell application "Mail" set _msg to item 1 of (get selection) set _messageURL to "message://%3c" & _msg's message id & "%3e" set _msgSubject to subject of _msg set _from to sender of _msg set _name to extract name from _from set theInfo to (_name & " - " & _msgSubject) set theLink to _messageURL tell application "Reminders" set mylist to list "📥 Indbakke" tell mylist make new reminder at end with properties {name:theInfo, body:theLink} end tell end tell end tell
sepulchra Posted January 4 Posted January 4 When i was looking around, it looked like the notes field was scriptable. Can your URL go there?
Steinway Posted January 4 Author Posted January 4 The notes-field is “body”, so yup; thats where the link goes.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now