Jump to content

Email to a Workflow


Recommended Posts

I'd like to be able to trigger an Alfred workflow on my Mac from another machine that has only email access to the outside world.  I'd like the subject line of the email to be available to the workflow as the query/input.

 

I could create a rule in Mail.app to run an AppleScript upon receiving an email matching certain criteria, and have that AppleScript do the work I want.  I'm just wondering if there is a clever way to have Alfred accomplish something similar.  (I don't currently use Mail.app, and running it just to do this is overkill.)

Thanks,

 

 

 

Link to comment

I'd like to be able to trigger an Alfred workflow on my Mac from another machine that has only email access to the outside world.  I'd like the subject line of the email to be available to the workflow as the query/input.

 

I could create a rule in Mail.app to run an AppleScript upon receiving an email matching certain criteria, and have that AppleScript do the work I want.  I'm just wondering if there is a clever way to have Alfred accomplish something similar.  (I don't currently use Mail.app, and running it just to do this is overkill.)

Thanks,

 

Mail.app wouldn't be required for doing something like this. Any mail application with AppleScript support could probably do this, or you could use some other scripting to perform sending mail from the command line.

Link to comment
  • 2 weeks later...

Mail.app wouldn't be required for doing something like this. Any mail application with AppleScript support could probably do this, or you could use some other scripting to perform sending mail from the command line.

 

I think he wants Alfred to be triggered by received mail.

 

 

I'd like to be able to trigger an Alfred workflow on my Mac from another machine that has only email access to the outside world.  I'd like the subject line of the email to be available to the workflow as the query/input.

 

I could create a rule in Mail.app to run an AppleScript upon receiving an email matching certain criteria, and have that AppleScript do the work I want.  I'm just wondering if there is a clever way to have Alfred accomplish something similar.  (I don't currently use Mail.app, and running it just to do this is overkill.)

Thanks,

 

Basically, Mail.app is probably the simplest way to do this. There are lighter-weight alternatives, but they're much more complex to achieve.

 

As I understand it, you want to trigger Alfred actions on one machine from another via email.

 

So on the receiving end, you need something that can talk to a mailserver or your email client and to Alfred. There aren't many email clients that can run scripts from filters, and writing your own client is a bit tricky. If you use Gmail, you could perhaps whip something up with the API.

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...