Re: list as string - is this a bug?
Re: list as string - is this a bug?
- Subject: Re: list as string - is this a bug?
- From: has <email@hidden>
- Date: Thu, 8 Sep 2005 23:06:11 +0100
Matt Neuburg wrote:
>set L to {"hoo", "ha"}
>L as string -- "hooha"
>set L2 to {"hoo", item 2 of L}
>L2 as string -- "hooha"
>-- so far so good...
>-- but now...
>{"hoo", item 2 of L} as string -- "hoo"
There's a general problem with coercing lists to text, e.g. the following should raise a coercion error but instead silently fail to fail:
{"foo", {a:1}, "bar"} as string --> "foo"
{"foo", window 1 of application "TextEdit", "bar"} as string --> "foo"
It's hard to identify the exact pathology without knowing the details of the code paths involved, but that's something for the AppleScript engineers to deal with.
has
--
http://freespace.virgin.net/hamish.sanderson/
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden