Re: Deleting last item of a List
Re: Deleting last item of a List
- Subject: Re: Deleting last item of a List
- From: email@hidden
- Date: Fri, 19 Nov 2004 09:15:12 -0500
Then there is also ...
set list01 to {"Konrad Adenauer", "Ludwig Erhard", "Kurt Georg
Kiesinger", "Willy Brandt", "Helmut Schmidt", "Helmut Kohl",
"Gerhard Schroeder", return}
set checkList to {"", " ", return, (ASCII character 10), (ASCII character 13)}
if (checkList contains last item of list01) then set list01 to (items
(1) thru ((count list01) - 1) of list01) as list
or
if ({"", " ", return, (ASCII character 10), (ASCII character 13)}
contains last item of list01) then set list01 to (items (1) thru
((count list01) - 1) of list01) as list
list01
--
SJWL
_______________________________________________
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