on run {input, parameters}
tell application "Finder" to set thePath to POSIX path of (container of item 1 of input as string)
tell application "Terminal" to do script "cd " & quoted form of thePath in window 1
return thePath
end run
Here’s what I have so far and it works great. Just posting to attempt to give something back:
on run {input, parameters}
tell application "Finder"
set theItem to item 1 of input
set thePath to POSIX path of (theItem as string)
if (thePath does not end with "/") then
set thePath to POSIX path of (container of theItem as string)
end if
end tell
tell application "Terminal" to do script "cd " & quoted form of thePath in window 1
return thePath
end run