• 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
Re: "starts with" any list item
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: "starts with" any list item
      • From: Paul Berkowitz <email@hidden>
References: 
 >"starts with" any list item (From: Gnarlodious <email@hidden>)

  • Prev by Date: Newbie Questions
  • Next by Date: Re: get eof real?
  • Previous by thread: "starts with" any list item
  • Next by thread: Re: "starts with" any list item
  • Index(es):
    • Date
    • Thread