• 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: Deleting last item of a List
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: Deleting last item of a List
  • Next by Date: Making a list of IPs that try relaying on my Postfix server
  • Previous by thread: Re: Deleting last item of a List
  • Next by thread: Re: Deleting last item of a List
  • Index(es):
    • Date
    • Thread