Jump to content

Open Alfred & execute command via AppleScript?


Recommended Posts

Posted

I've been wondering about hooking up Alfred with Hazel or Folder Actions and was wondering: is it possible to open Alfred and tell it to run a command from AppleScript?

 

An example flow:

 

1. Folder action attached to Downloads folder: When a new item is added & finishes downloading, open Alfred and execute the "Recent Downloads" workflow.

 

Doable?

Posted
tell application "Alfred 2" to search "recent"

 

Where "recent" would be replaced with whatever the command for the "Recent Downloads" workflow is

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