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: Quoting



At 11:50 AM -0500 2/11/05, Stephen Jonke wrote:
Why does the following:

   get " \" "

produce the following result:

   \"

Clearly the quoting works because the line doesn't flag an error, however the resulting string includes the slash! What?!?

I'm running 10.3.8.

It's a function of the Script Editor. If you run that in Script Debugger you'll get " as expected. Script Editor gives you a string that's usable in a script (to use a term from Cal's lexicon, it takes the result and stringifys it for use in AppleScript). Script Debugger gives you the text as it is intended to be, unstringified. If you actually use that quote character somewhere, it will work fine done from Script Editor of Script Debugger. You're seeing a difference in the visual presentation of the result.


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

This email sent to email@hidden
References: 
 >Quoting (From: Stephen Jonke <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.