How to change AppleScript path to a Terminal-style path?
Use quoted form of the POSIX path of input.  Without the quoted form of part, it won't handle funny characters (like spaces) in filenames correctly.  See this Apple technote.