Re: string question
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.