List item number
List item number
- Subject: List item number
- From: "Steve Suranie" <email@hidden>
- Date: Tue, 25 Feb 2003 11:38:35 -0500
- Thread-topic: applescript-users digest, Vol 3 #1376 - 17 msgs
Hi folks:
Is this possible?
When a hot folder accepts a file it parses the file name for a certain string then compares that string to a list (array) - {"item1", "item1B", "item2", "item2B", "item3", "item3B"} If the list contains the string is there a way to return where in the list that string appears. For example, using the list above.
If a file was dropped into the folder that had the string "item1" I would want to then know that item1 is the first item in the list. What I want to do is assign the value of the next item in the list to another variable.
I can do this with a if-then-else statement but the list is much more convenient as I can use it for several purposes.
Hope this made sense.
Thanks
Steve
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.