• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: list as string - is this a bug?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Re: list as string - is this a bug?
  • Next by Date: Re: Creating a folder on the desktop (recap)
  • Previous by thread: RE: list as string - is this a bug?
  • Next by thread: system events and folder actions enabling
  • Index(es):
    • Date
    • Thread