Page 1 of 1

Multiple files

PostPosted: Thu Oct 11, 2012 9:29 pm
by marvelousmo
Hello Mr Noodle!

I would like to run an automator-workflow on multiple (all) files in a folder. This is to set the spotlight comments. Unfortunately when I tell hazel to run the workflow it does it with every single file ( I will be asked to write a comment on each single file) instead of adding the one written spotlight comments in all files.

What for: I want to add a spotlight comment to every file in this folder. Automator workflow allows me (after selecting all files) to give a spotlight comment to ALL files via context-menu. I want hazel to do that for all files.

I hope you understand my question and that there is a solution for that.
Thanks very much for the awesome program!
moritz

Re: Multiple files

PostPosted: Mon Oct 15, 2012 4:46 pm
by a_freyer
I would suggest matching the directory and running a shell command. The syntax depends on your workflow's input, but it is probably something similar to this (Warning: untested code. I am not sure of the directory input structure that Automator expects.):

Code: Select all
/usr/bin/automator -i "$1"