I'm building an automator application that acts on a folder that needs to be specified.

Until now, I've been using the "Ask for Finder items" action to ask for a the folder to be used, but I would like to be able to just drag 'n' drop the folder on the application icon.

Can it be done in automator? I've been thinking to use some applescript to check if any input was given.