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

Deleting last item of a List


  • Subject: Deleting last item of a List
  • From: doug rogers <email@hidden>
  • Date: Thu, 18 Nov 2004 23:15:18 -0500

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.

Matt puts an example of deleting an item in his book, but gee, I'm sorry, but I do not understand it. As an example of how much Applescript resembles Scheme it's great, but its too geeky for a simple guy like me to grasp, disassemble in my brain and reuse. Sorry. And nowhere does he mention the capability of getting the last item of a list.

Bruce Perry's book mentions last item of a list.

Does End replace Last?

Now, the last empty item might be a space too, but it's most likely a return. Compare the ASCII values and the script forges ahead and posts an empty item in iCal. No deleting of the last item(s) of the list. Is this a Unicode thing then?

So I am not exactly certain what the problem is. Last/End ? or Getting the invisible character?


There is a crack in everything. That's how the light gets in. __________<http://home.golden.net/~samu>__________

_______________________________________________
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: Can't type " (ASCII character 34) in a string
  • Next by Date: Deleting last item of a List
  • Previous by thread: Re: Can't type " (ASCII character 34) in a string
  • Next by thread: Deleting last item of a List
  • Index(es):
    • Date
    • Thread