set posixFile to POSIX path of (choose file with prompt "Choose a document:")
set myCommand to "sed -i .bak s/¥/'\\'/g " & posixFile
do shell script myCommand