display dialog "Please input string (please use quotes):" default answer ""
set textOutput to text returned of result
set quotedText to textOutput -- check Events window and you'll see your string with slashes and quotes
display dialog "Here's what you input, without slashes:" & return & quotedText
display dialog "Now we'll save the string to a disk"
set docAlias to path to documents folder
set newFileName to (choose file name with prompt "Please enter a file name" default name "quote test" default location docAlias)
set newFileNameString to newFileName as string
set outPutfile to open for access file newFileNameString with write permission
write quotedText to outPutfile starting at eof
close access outPutfile
display dialog "Now please check the quotes in your file."