Re: Deleting last item of a List
Re: Deleting last item of a List
- Subject: Re: Deleting last item of a List
- From: Paul Berkowitz <email@hidden>
- Date: Thu, 18 Nov 2004 21:22:01 -0800
On 11/18/04 8:45 PM, "John C. Welch" <email@hidden> wrote:
> On 11/18/2004 22:32, "doug rogers" <email@hidden> wrote:
>
>> Can't seem to delete the last item of a list. I'm back to poking
>> through my To Do app and trying to catch the possibility that the last
>> item is an empty character, most likely a return character, which shows
>> up as "" in the last item of TheList. - else it makes an empty To Do in
>> iCal.
>
> Set theList to reverse of theList
> Set theList to the rest of theList
> Set theList to reverse of theList
or
set theList to items 1 thru ((count theList) - 1) of theList
--
Paul Berkowitz
_______________________________________________
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