Re: Deleting last item of a List
Re: Deleting last item of a List
- Subject: Re: Deleting last item of a List
- From: Nelson Byrne <email@hidden>
- Date: Sat, 20 Nov 2004 14:52:03 -0800
has pointed us to the correct answer, in message 6, issue 214, vol 1:
http://lists.apple.com/archives/applescript-users/2002/May/msg00793.html
It's worth noting that the {,} and [,] list types have a little
different functionality as far as adding goes - one cannot stick
something onto the end of the latter. For example:
copy {1, 2} to a
set w to a
set end of a to 3
copy [4, 5] to b
set x to b
try
set end of b to 6
on error errmsg
copy errmsg to b
end try
copy {7, 8} to c
set y to c
set c to c & 9
copy [10, 11] to d
set z to d
set d to d & 12
{{"a,w", a, w}, {"b,x", b, x}, {"c,y", c, y}, {"d,z", d, z}}
-->{{"a,w", {1, 2, 3}, {1, 2, 3}}, {"b,x", "Can't set end of {4, 5} to
6.", {4, 5}}, {"c,y", {7, 8, 9}, {7, 8}}, {"d,z", {10, 11, 12}, {10,
11}}}
Regards,
Nelson
_______________________________________________
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