• 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: Yvan KOENIG <email@hidden>
  • Date: Tue, 05 Apr 2016 19:05:08 +0200


Le 5 avr. 2016 à 18:53, Dave <email@hidden> a écrit :

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

References: 
 >Escaping Quote Characters (From: Dave <email@hidden>)
 >Re: Escaping Quote Characters (From: Andrew Oliver <email@hidden>)
 >Re: Escaping Quote Characters (From: Dave <email@hidden>)

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