• 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: {}'s end
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: {}'s end


  • Subject: Re: {}'s end
  • From: has <email@hidden>
  • Date: Thu, 1 Aug 2002 18:25:28 +0100

Serge Belleudy-d'Espinose wrote:

[Bonjour Serge, long time no see. How's tricks?]

>You can use
>
>set {}'s end to 5
>
>to start a list whose first item would be 5. Unfortunately due to a
>long standing bug, this single-item list will be turned into its
>item, thus
>
>set {}'s end to 5
>-> 5

That's not a bug. That's normal behaviour for a set statement: its result
value is the setter, not the settee. Assign your list to a variable
beforehand so you can get it again when done.

set lst to {}
set lst's end to 5
--> 5

set lst to {}
set lst's end to 5
lst
--> {5}

has

--
http://www.barple.connectfree.co.uk/ -- The Little Page of Beta AppleScripts
_______________________________________________
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.

  • Prev by Date: Re: QXP5 image offset
  • Next by Date: making a new folder
  • Previous by thread: Re: {}'s end
  • Next by thread: Jaguar for $60
  • Index(es):
    • Date
    • Thread