iFlicks folder action script

Hey everyone!

I’m looking for a way to modify this applescript so it doesn’t have to run as a folder action. I want to run this script in an automator workflow.
Instead of it watching a folder, I am going to have automator filter the folder and search for movie files and then process them through iFlicks, a program that adds cover art and metadata to movies. Here is the current script :


on adding folder items to thisFolder after receiving addedItems
repeat with movieFile in addedItems
tell application "iFlicks"
import movieFile without gui
end tell
end repeat
end adding folder items to

Any ideas?

Thanks!

Jared