These lines will run /path/command with a first parameter of the file name that got
dropped on the Apple Script app:
on open (ItemList)
repeat with thisItem in ItemList
do shell script "/path/command " & POSIX path of thisItem
end repeat
end open
Simple. And unintuitive. AppleScript would rule the world if it would have JavaScript syntax for instance. Instead apple idiots made “Automator”. What a silly piece of shit. Only fanboys spend time to learn a buggy and totally non portable interface like AppleScript or Automator. I could have bothered with Windows if I would want that. Oh, the script above fails to work when there are spaces in the name. Thanks AppleScript.