Re: Quoted text?
Re: Quoted text?
- Subject: Re: Quoted text?
- From: email@hidden
- Date: Thu, 18 Jan 2001 14:58:25 -0500
You can also use:
set double_straight_quote to (ASCII character 34)
set x to "He said " & double_straight_quote & "Oops." & double_straight_quote &
" after dropping the plate."
K
>
On 1/17/01 11:28 AM, Michael Kern <email@hidden> wrote
>
>
>I am having trouble creating a quoted text string. I'm following the
>
>example in a book I have.
>
>
>
>Script:
>
>set x to "He said \"Oops.\" after dropping the plate." as string
>
>get x
>
>
>
>Result:
>
>"He said \"Oops.\" after dropping the plate."
>
>
>
>What I want:
>
>"He said "Oops." after dropping the plate."
>
>(see no slashes)
>
>
You'll always see that in the results window. Try replacing "get x" with
>
"display dialog x" and you won't see the slashes.
>
>
--Michelle
----------------------------------------------------------------------
| Michelle Steiner | Hard as it may be to believe, my |
| email@hidden | life has been based on a true story. |
----------------------------------------------------------------------