Re: How to get parameter item of a string in a list
Re: How to get parameter item of a string in a list
- Subject: Re: How to get parameter item of a string in a list
- From: Adam Wuellner <email@hidden>
- Date: Tue, 17 May 2005 09:37:29 -0500
On 5/16/05, Patrik B. <email@hidden> wrote:
> 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.
This approach might have a place, somewhere:
set my_list to {"beefily", "billowy", "spoonfeed", "zymic", "gordian"}
repeat with i from 1 to count of my_list
set item i of my_list to (i as string) & " " & item i of my_list
end repeat
set choice to item 1 of (choose from list my_list without multiple
selections allowed)
set index_of_chosen_item to (word 1 of choice) as integer
--
Adam
_______________________________________________
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