applescript returns 2 variables; how do I access each in automator?

so I’ve got some code that grabs a URL from safari, breaks it into parts, and then I need to ftp upload the parts based on the folPath and filename; How do I break them apart and access each one in automator?

Here’s my code; how do I access both folpath and filename inside of automator?

on run {input, parameters}
   global theURL
   global filename
   global folPath
   tell application "Safari"
       set theURL to URL of document 1
   end tell
   if theURL begins with "http://" then set theURL to text 8 thru -1 of theURL
   set {tid, AppleScript's text item delimiters} to {AppleScript's text item delimiters, "/"}
   set vars to text items of theURL
   set {domain, filename} to {item 1, item -1} of vars
   if (count vars) ≥ 3 then
       set folPath to items 2 thru -2 of vars as string
       set folPath to null
   end if
   set AppleScript's text item delimiters to tid
   return {filename, folPath}
end run