Jump to content

How to invoke Automator Quick Action with Alfred File Action?


Recommended Posts

I built some Quick Actions in Automator (e.g. with pdf actions like "Combine PDF Pages").

 

I wonder if and how it is possible to reuse them in Alfred and invoke them in Alfred File Actions. I would prefer to invoke them from Alfred's user interfaces instead to have to memorize crazy keyboard shortcuts or to have to ⌃click the file selection in Finder.

 

I am running BigSur.

- Hans-Peter

Link to comment
20 hours ago, deanishe said:

You can run Automator workflows with the /usr/bin/automator command-line program:


/usr/bin/automator -i /path/to/input/file /path/to/workflow.workflow

 

That's it! Thank you!

In order to feed multiple files into a workflow, automator requests to get the list of file pathes to be piped from stdin separated by newlines (see man). So I added printf in front of automator.

Bildschirmfoto 2021-09-04 um 13.30.54.png

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