• 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: Snippet to remove an item from a list
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Snippet to remove an item from a list


  • Subject: Re: Snippet to remove an item from a list
  • From: Michelle Steiner <email@hidden>
  • Date: Mon, 9 Jul 2001 08:38:04 -0700

On 7/9/01 7:24 AM, Arthur J Knapp <email@hidden> wrote:

> Here is the more traditional AppleScript technique:

Alternatively (slightly modifying Arthur's script):

on DeleteAt(lst, x)
tell the lst
if (x = 1) then
return the rest
else if (x = the length) then
return items 1 thru -2
else
return (items 1 thru (x - 1)) & ,
(items (x + 1) thru -1)
end if
end tell
end DeleteAt



----------------------------------------------------------------------
| Michelle Steiner | We're not human beings having a spiritual |
| | experience. We're spiritual beings |
| email@hidden | having a human experience. |
----------------------------------------------------------------------


  • Prev by Date: Re: Insert Pic in MS WORD & information dialog
  • Next by Date: Re: Print Setup problems in Quark
  • Previous by thread: Re: Snippet to remove an item from a list
  • Next by thread: Re: Snippet to remove an item from a list
  • Index(es):
    • Date
    • Thread