How to get parameter item of a string in a list
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