I have an applescript that does something along these lines:
using terms from application \"Quicksilver\" on open theseitems repeat with aitem in the
In the script you pass in the arguments with the on run like this :
on run
on run arg --do whatever you want with arg end run
If more than one argument is specified the arg variable is a list.
arg