set posixFile to quoted form of (POSIX path of (choose file with prompt "Choose a document:"))

set myCommand to "sed -i .bak s/¥/'\\'/g " & posixFile

do shell script myCommand