• 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: Matt Deatherage <email@hidden>
  • Date: Thu, 8 Sep 2005 13:08:46 -0500

On 9/8/05 at 11:20 AM, Matt Neuburg <email@hidden> 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"

I vote bug and would guess reference problem.  Try this new ending:

-- so far so good...
-- but now...
set L3 to {"hoo", item 2 of L} -- {"hoo", "ha"}
{"hoo", item 2 of L} as string -- "hoo"
L3 as string -- "hooha"

My guess: internally, {"hoo", item 2 of L} is a list of a string and a reference, and the reference doesn't get converted to a string until it's assigned to something.

If you find other cases, please add them to the bug report I'm sure you're preparing.  :-)

--
Matt Deatherage                              <email@hidden>
GCSF, Incorporated                      <http://www.macjournals.com>

"Success is the ability to go from one failure to another with no loss of
 enthusiasm."  -- Sir Winston Churchill


 _______________________________________________
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

  • Follow-Ups:
    • Re: list as string - is this a bug?
      • From: Matt Neuburg <email@hidden>
References: 
 >list as string - is this a bug? (From: Matt Neuburg <email@hidden>)

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