-- this sub-routine processes filesThe above code shows the core part of the droplet that calls into iFlicks. In this sample the file is merely added to iFlicks and later on the comment modified and processing started.
tell application "iFlicks 2"
repeat with this_video in videos
-- get the newly added video
if file of this_video as string is this_item as string then
-- modify settings and metadata
set comment of this_video to "Added by droplet"
-- start processing
In a similar fashion it would be possible to adjust the preset and do other modifications before processing.