Re: Fwd: string question
Re: Fwd: string question
- Subject: Re: Fwd: string question
- From: John W Baxter <email@hidden>
- Date: Fri, 16 Aug 2002 21:12:52 -0700
At 11:00 -0700 8/14/2002, Michelle Steiner wrote:
>
> Two ways.
>
>
>
> 1. Use curly quotes inside the string: Option-[ and option-{
>
> 2. Escape the quotes with a backslash: "this \"be\" text"
3 of two...build the string like this
set quote to ascii character of 34 --or to "\""
set x to "this " & quote & "be" & quote & " text"
I can't think of a single situation in which this is "better" than 1 or 2,
but if we're going to make lists...there are still other ways, too (such as
putting the literal "ascii character of 34" in place of each instance of
quote in 3...YUCK).
I'd use \" inside the string...typographic quotes don't travel well
(including through this list).
--John
--
John Baxter email@hidden Port Ludlow, WA, USA
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.