Re: Escaping Quote Characters
Re: Escaping Quote Characters
- Subject: Re: Escaping Quote Characters
- From: Andrew Oliver <email@hidden>
- Date: Tue, 05 Apr 2016 08:27:38 -0700
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.
Andrew
:)
> On Apr 5, 2016, at 6:42 AM, Dave <email@hidden> wrote:
>
> Hi All,
>
> I’m trying to make some VBA Code work in Word 2011. I generate a VBA String and then run:
>
> tell application id "com.microsoft.Word"
> «event MSWDdovb» myVBAString
> end tell
>
> Part of the string contains this code:
>
> set myVBAString to myVBAString & "strPropertyName = \”DocProp1\"" & linefeed
> set myVBAString to myVBAString & "varValue = \”DocProp1 Value)\"" & linefeed
>
> Which gives this as Output:
>
> strPropertyName = \"DocProp1\"
> varValue = \”DocProp1 Value\"
>
> Is this correct? I had thought that the “\” characters would be dropped. I’m looking at the String in Script Editor so maybe that adds the “\” for Output?
>
> Any help or suggestions in how to make this work would be greatly appreciated.
>
> All the Best
> Dave
>
>
> _______________________________________________
> 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
_______________________________________________
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