set myFile to choose file with prompt "Choose a document:"

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

do shell script myCommand