Anyone familiar with OS X "convert" command?

The sample apple script /Library/Scripts/Printing Scripts/Convert to PDF.scpt works well. It prompts to select the file you want to convert and saves the new PDF to the same location as the original. I stripped out the last part of the script and placed it into a Folder Actions Script. Now it saves the new PDF to the root of the drive and not to the same location as the original.
Does anyone no how to find out if the “Convert” command has a output destination argument?
This is what I’m using now. The “/In/” path is just a folder on root of the drive named In.

Thanks in advance.

on adding folder items to this_folder after receiving these_files
repeat with ThisFile in these_files
tell application “Finder” to set theString to name of ThisFile as string

   set terminalCommand to ""
   set convertCommand to "/System/Library/Printers/Libraries/./convert "
   set newFileName to theString & ".pdf" as string
   set thisPath to this_folder & theString as string
   set terminalCommand to convertCommand & "-f " & "\"" & thisPath & "\"" & " -o " & "\"" & newFileName & "\"" & " -j \"application/pdf\""
   
   do shell script terminalCommand
end repeat    

end adding folder items to

You already have a thread about this. Please use that one.

Sorry. Thought I would try a different forum. More specialized.