Re: {}'s end
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.