Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to write "Quote"? in appleScript



Thank you Joe,

It worked!.

On 2005/03/08, at 14:48, Joseph Weaks wrote:

On Mar 7, 2005, at 10:33 PM, nkoni wrote:
I'm trying scripting in appleScript,
but I could not script """ (quote) in appleScript.

(in HyperTalk, it is written as "quote")

such as...

  set theID to "tableDataProperty"
  set str to "<td id=>" & quote & theID &  quote & "</td>"

You need to escape the quotes within a string... by putting a backslash in front of it as in \"
So, your example would be


set theId to "tableDataProperty"
set str to "<td id=>\"" & theId & "\"</td>"

--Result:  <td id=>"tableDataProperty"</td>

Cheers,
Joe Weaks



_______________________________________________ Do not post admin requests to the list. They will be ignored. Applescript-studio mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/applescript-studio/email@hidden

This email sent to email@hidden
References: 
 >How to write "Quote"? in appleScript (From: nkoni <email@hidden>)
 >Re: How to write "Quote"? in appleScript (From: Joseph Weaks <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.