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



On 05.3.8 2:48 PM, "Joseph Weaks" <email@hidden> 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>

Japanese environment of Mac OS X has been having sevior *bug* in processing
yen & back slash character to quote. I want to recommend to write like
this.... 


set qChar to ASCII character 34
set theId to "tableDataProperty"
set str to "<td id=>" & qChar & theId & qChar & "</td>"

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

--
Takaaki Naganoya
email@hidden

 _______________________________________________
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: 
 >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.