script to import a file from the finder

From Korm, here.

I was looking for a way to create a service from an Automator workflow which sends files to a group, to which I could set a keyboard shortcut.

I know there’s a bundled service in DTPO that sends files to the global inbox that I could use for this, but I wanted rather to send files to a specific group - and to do that whether the group’s database is open or not - or indeed whether DTPO is open or not.

That’s sort of what the script for the Hazel rule in that other thread does, only it’s not set up to be used as an Automator service for selecting files in the Finder. I thought maybe it could be adapted so that it could be.