Re: AppleScript mystery
Re: AppleScript mystery
- Subject: Re: AppleScript mystery
- From: Emmanuel <email@hidden>
- Date: Wed, 21 Apr 2004 23:13:27 +0200
At 10:49 PM -0700 20/04/04, David Crowe wrote:
>
set theString to "abc def"
>
repeat with aCharacter in theString
>
display dialog (class of aCharacter)
>
return
>
end repeat
>
>
Produces the output "TEXT"?
That's a cool feature of "display dialog": when given a class to display, it shows the 4-characters code for that class, not its coercion to string.
For instance:
display dialog Unicode text --> utxt
display dialog real --> doub
Still, you can force the coercion:
display dialog (Unicode text as string) --> Unicode text
etc.
Emmanuel
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.