Passing selected folder path to custom Service executing AppleScript
At the top of the screen, above your action, there should be a list-box that says Service receives selected &lt;text&gt; in &lt;any application&gt;.  Changing &lt;text&gt; to folders should give you the folders as input.