• 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
"Del" char and removing item from a list
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

"Del" char and removing item from a list


  • Subject: "Del" char and removing item from a list
  • From: FlyMac <email@hidden>
  • Date: Fri, 26 Jan 2001 17:41:56 +0100

Hi everyone,

With your precious help I pushed my ircle script a lot forward. Now I'd like
to ask you two questions, I really tried to find a solution, in the ASdoc,
complement docs, etc but I didn't find it out.
I'm scripting with akua sweets for write/read to file.
Ok, I have a text file with 3 lines in it (for example):
--
From Nick1 : hello this is a test
From Nick2 : come on let's test again ;)
From Nick3 : yep this is a test, too.
--
And of course I have to delete the second line so that line 3 comes directly
under line 1. I can make the line to " " but it doesn't remove the line. How
can I do that?

Next question: I've been surprised to see how it's difficult to remove an
item from a list. I have a list with some strings in it (ex: {Nick1, Nick2,
Nick3...}) and I just want to erase Nick2 so that the list becomes {Nick1,
Nick3}. For info I have to get the Nick to remove from a string. I tried
some things like that:
set NickList to every item of NickList whose item is not NickList
but unsucessful.

Thanks a lot for reading this e-mail and even more if you have a solution,
*lol* =)

Kevin


  • Follow-Ups:
    • Re: "Del" char and removing item from a list
      • From: Emmanuel <email@hidden>
  • Prev by Date: A moveFile and Finder object references question
  • Next by Date: Re: R23's Osaxen Rant (or much too much ado about nihil)
  • Previous by thread: Re: A moveFile and Finder object references question
  • Next by thread: Re: "Del" char and removing item from a list
  • Index(es):
    • Date
    • Thread