• 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: Escaping Quote Characters
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Escaping Quote Characters
      • From: Dave <email@hidden>
References: 
 >Escaping Quote Characters (From: Dave <email@hidden>)

  • Prev by Date: Escaping Quote Characters
  • Next by Date: log command
  • Previous by thread: Escaping Quote Characters
  • Next by thread: Re: Escaping Quote Characters
  • Index(es):
    • Date
    • Thread