Re: strings and strings (was Don't get it.)
Re: strings and strings (was Don't get it.)
- Subject: Re: strings and strings (was Don't get it.)
- From: Sander Tekelenburg <email@hidden>
- Date: Thu, 14 Dec 2006 06:52:46 +0100
At 23:46 -0500 UTC, on 2006-12-13, Mark J. Reed wrote:
> On 12/13/06, Sander Tekelenburg <email@hidden> wrote:
>> Notice the different syntax colouring of the string "blah" in Script
>>Editor's
>> Event Log:
>
> ??? When I paste your script below into Script Editor (Intel iMac,
> 10.4.8), I get exactly the same blue color on "string" for all of the
> logged output lines...
Might you have changed SE's settings? To the best of my knowledge I use the
default settings (also under 10.4.8). For me, the second log statement (right
after TextWrangler manipulated the value) shows the content of the variable
in green. With all the other log statements, it is shown in black instead.
As I said, I don't recall the exact details, but in my memory this is nothing
new, dating back to Mac OS pre-X. (I'm sure it can be dug up from the
archives.)
>> set my_string to {"blah" as Unicode text}
>> log {my_string, class of my_string}
>> tell application "TextWrangler"
>> set the text of document 1 to my_string
>> set my_string to the text of document 1 as string
>> end tell
>> log {my_string, class of my_string}
>>
>>
>> set my_string to {"blah" as Unicode text}
>> log {my_string, class of my_string}
>> set my_string to my_string as string
>> log {my_string, class of my_string}
--
Sander Tekelenburg, <http://www.euronet.nl/~tekelenb/>
_______________________________________________
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/mailman//archives/applescript-users
This email sent to email@hidden