Re: Quotes in strings sent to JavaScript
Re: Quotes in strings sent to JavaScript
- Subject: Re: Quotes in strings sent to JavaScript
- From: "Mark J. Reed" <email@hidden>
- Date: Thu, 29 Nov 2007 08:49:33 -0500
On Nov 29, 2007 8:48 AM, Mark J. Reed <email@hidden> wrote:
> set the_JavaScript to "this.metadata = '" & my_XML_string & "';"
Actually, it would probably work better to do this:
set the_JavaScript to "this.metadata = " & quoted form of my_XML_string & ";"
since then AS will take care of quoting any internal apostrophes for you.
--
Mark J. Reed <email@hidden>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden