automator: get a folder if it dropped or ask for one otherwise
You can do whole workflow in AppleScript:

on adding folder items to theFolder after receiving theItems
    repeat with anItem in theItems
        -- your code goes here  
    end repeat
end adding folder items to