• 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
How to get parameter item of a string in a list
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to get parameter item of a string in a list


  • Subject: How to get parameter item of a string in a list
  • From: "Patrik B." <email@hidden>
  • Date: Mon, 16 May 2005 11:24:58 -0700

Hi,

I have a list of strings
(lets say five, "Hi", "bye", "good morning", "Tschau", "Hello world") and I
want the number of the item I selected (lets say I selected item "good
morning") In my example it would be 3. How do I get this number so that I
can pass it to a variable so that I can delete it from a list using a
removeItem handler. etc.?

I am basically trying to generate a new list that has everything in it
except for the item I selected.

I have figured out that I can delete it using a removeitem handler I found
in the book I am reading. But the script requires the parameter number. Not
only the name of the string.

Can anybody tell me how I get the number of an item I picked in a list
unless I can delete the item directly from a list without needing the
position parameter.

Best, Patrik

 _______________________________________________
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

  • Follow-Ups:
    • Re: How to get parameter item of a string in a list
      • From: Adam Wuellner <email@hidden>
    • Re: How to get parameter item of a string in a list
      • From: Rob Stott <email@hidden>
    • Re: How to get parameter item of a string in a list
      • From: Michelle Steiner <email@hidden>
    • Re: How to get parameter item of a string in a list
      • From: "Gary (Lists)" <email@hidden>
  • Prev by Date: Re: alis ???
  • Next by Date: Re: How to get parameter item of a string in a list
  • Previous by thread: Re: alis ???
  • Next by thread: Re: How to get parameter item of a string in a list
  • Index(es):
    • Date
    • Thread