Jump to content

Why Some Apps Can Access the Email.app While Alfred Can't


Recommended Posts

Hello everyone.

 

I know that it's currently not possible to create a workflow for Mail.app due to Apple's own restrictions.

But how is it possible that in Raycast there´s an extension that can use Mail.app to view recent emails and even send emails directly from Raycast and in Alfred this is not possible?

Link to comment

It is possible to make a workflow for it, Mail has an AppleScript dictionary. The Mail Link workflow uses it. The reason there isn’t a workflow for it is more likely to be that Alfred can already send emails by default and that looks to be enough for what most people want. Whatever information you saw about Alfred being unable to do it might have referred to some specific feature of Mail which is not automatable. Apple has stopped adding AppleScript capabilities to their apps (even before making Shortcuts) even as it adds more features.


Here’s a first proof of concept. I can already:

  • Show messages from inbox.
  • Open a message in the Mail app.
  • Open a reply to a message ⇧↩.
  • Delete a message ⌘↩.
  • Toggle read status ⌥↩.

Might work this into a more full fledged workflow soon.

Link to comment
22 minutes ago, Cipri said:

the "Open a reply to a message ⇧↩" doesn't work on my my Mac.

 

Make sure you’re on version 0.0.2 (I updated the link a few minutes after posting, with more features). If you are on that version, open the  debugger, perform the failing action, click “Copy” on the top right and paste it here.

 

24 minutes ago, Cipri said:

You created this workflow today?

 

Yes, started about an hour after your post.

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...