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

Escaping Quote Characters


  • Subject: Escaping Quote Characters
  • From: Dave <email@hidden>
  • Date: Tue, 05 Apr 2016 14:42:38 +0100

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


  • Follow-Ups:
    • Re: Escaping Quote Characters
      • From: Andrew Oliver <email@hidden>
  • Prev by Date: Getting the date of the next or current recurrence of an iCal/Calendar event
  • Next by Date: Re: Escaping Quote Characters
  • Previous by thread: Getting the date of the next or current recurrence of an iCal/Calendar event
  • Next by thread: Re: Escaping Quote Characters
  • Index(es):
    • Date
    • Thread