There is no direct correlation between AppleScript and Darwin. In this case, AppleScript should be thought of more like perl in that you'll do what you want by writing an AppleScript to call GhostScript for you.
A simple example would be:
on open these_items
repeat with this_item in these_items
do shell script "ps2pdf \"" & this_item & "\" outfile.pdf"
end repeat
end open
Save this script as a Script Application (an option in the Save dialog in the Script Editor) and you now have a complete drag-and-drop application.
The logic of the script is:
on open these_items
The files dropped on the icon are placed in an list (array) called "these_items". Note, this automatically supports multiple files dropped at the same time.
repeat with this_item in these_items
This AppleScript repeat statement loops through the items in "these_items" sequentially. For each iteration, the current item is stored in a variable called "this_item". The loop automatically terminates when there are no more items in the list.
do shell script "ps2pdf \"" & this_item & "\" outfile.pdf"
This is the line that concatenates the name of the current file (this_item) into the command line "ps2pdf <filename> outfile.pdf", which it then passes to a new shell for execution.
Note that I've quoted the input filename, just in case the file (or its path) contains spaces which would confuse the shell. Also, this simple script always outputs to the same file, namely "outfile.pdf". A more robust script would probably generate an output filename based on the input filename, but I'll leave that up to you.
end repeat
Simply the end of the repeat loop.
end open
and the end of the script.