Re: Escaping Quote Characters
Re: Escaping Quote Characters
- Subject: Re: Escaping Quote Characters
- From: Yvan KOENIG <email@hidden>
- Date: Tue, 05 Apr 2016 19:05:08 +0200
Hi, On 5 Apr 2016, at 16:27, Andrew Oliver <email@hidden> wrote:
You’re right - Script Editor adds the quotes in the output to demonstrate the fact there is an embedded quote within the string object. Nothing to worry about.
Except that I couldn’t get it to work using that syntax, when I tried this: set myVBAString to myVBAString & "strPropertyName = " & quote & "DocProp1" & quote & linefeed set myVBAString to myVBAString & "varValue = " & quote & "DocProp1 Value" & quote & linefeed it worked, but the output looks the same. So I’m wondering what is wrong? Cheers Dave
My understanding is that nothing is wrong.
run this short script set aString to quote & "azerty" & quote set the clipboard to aString
in the events log you will see :
tell application "Script Editor" set the clipboard to "\"azerty\"" end tell
and if you paste in TextEdit you will correctly get "azerty"
Yvan KOENIG running El Capitan 10.11.4 in French (VALLAURIS, France) mardi 5 avril 2016 19:05:02
|
_______________________________________________
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