def asquote(astr):
 astr = astr.replace('"', '" & quote & "')
 return '"{}"'.format(astr)

def asquote ( astr ) : astr = astr . replace ( '"' , '" & quote & "' ) return '"{}"' . format ( astr )
return the applescript equivalent of the given string .