• 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: string question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: string question


  • Subject: Re: string question
  • From: Alex Robinson <email@hidden>
  • Date: Wed, 14 Aug 2002 16:13:53 +0100

>I want to create a string with quotation in it:
>
>"My string might be "this" and there would "be" extra quotes
>"throughout" the string"
>
>How can you do this?

You need to escape the quote marks. You do this with a backslash before the
quote, like so \"

So your string would need to be:

"My string might be \"this\" and there would \"be\" extra quotes
\"throughout\" the string"

Some other languages let you toggle between single and double quotes or use
arbitrary symbols to signify strings. Applscript, rightly or wrongly, does
not.

Similarly, if you need an actual backslash in your string, you actually
need to insert it twice, ie. \\
_______________________________________________
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.

  • Follow-Ups:
    • Re: string question
      • From: Michael Grant <email@hidden>
References: 
 >string question (From: Emily Leventhal <email@hidden>)

  • Prev by Date: string question
  • Next by Date: What am I DOING!?!
  • Previous by thread: string question
  • Next by thread: Re: string question
  • Index(es):
    • Date
    • Thread