Re: "starts with" any list item
Re: "starts with" any list item
- Subject: Re: "starts with" any list item
- From: Paul Berkowitz <email@hidden>
- Date: Mon, 29 Sep 2003 08:35:52 -0700
On 9/29/03 7:34 AM, "Gnarlodious" <email@hidden> wrote:
>
I'm looking for a shortcut.
No shortcut.
>
>
I need to loop through this list:
>
>
set nullTitles to {"ASCII", "Index of ", "http"}
>
>
and say:
>
>
if the clippingTitle starts with (is in nullTitles) then
>
>
set clippingTitle to my ProcessURL(item 1 of windowInfo)
>
>
>
>
In other words, is there a way to say "starts with any list item"?
No.
>
Or do I need to loop through the list incrementally?
Yes. Unless they're all the same length - then you could say
if {text 1 thru 5 of clippingTitle} is in {"ASCII", "Index", "http:"}
--
Paul Berkowitz
_______________________________________________
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.