• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Fwd: string question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Fwd: string question (From: Michelle Steiner <email@hidden>)

  • Prev by Date: Re: Perl or Applescript w/ Excel
  • Next by Date: Re: OS 10.2 & Mail scripting has introduced a new wrinkle
  • Previous by thread: Fwd: string question
  • Next by thread: Re: string question
  • Index(es):
    • Date
    • Thread