Re: Quoted text?
Re: Quoted text?
- Subject: Re: Quoted text?
- From: Pier Kuipers <email@hidden>
- Date: Thu, 18 Jan 2001 08:04:38 +0000
>
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)
set x to "He said \"Oops.\" after dropping the plate." as string
display dialog x
This will display the text the way you want it, I imagine. Or, if you
really want double quotes around the whole sentence:
set x to "\"He said \"Oops.\" after dropping the plate." & "\"" as string
display dialog x
By using 'get x' in your script, you will see the result that
Applescript returns, however, using this result as a variable for
some other script action such as 'display dialog' *will* display the
correct string.
Pier.
--
Pier Kuipers
Visual ID
* the Media Asset Management solution *
2 Whitefriars
Aungier Street
Dublin 2
Tel. +353 1 476 7059
Fax +353 1 478 1366
ISDN +353 1 602 0754
http://www.visualid.com
References: | |
| >Quoted text? (From: Michael Kern <email@hidden>) |