• 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: Compile time Serge Surge
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Compile time Serge Surge


  • Subject: Re: Compile time Serge Surge
  • From: Andy Wylie <email@hidden>
  • Date: Fri, 26 Jul 2002 19:35:54 +1200

on 25/7/02 6:02 PM +1200: i wrote:

> I was kinda surprised this works fine...
>
> property bigList : {hardcoded big list}
>
> on _bar()
> script
> property _List : my bigList
> end script
> end _bar
>
> property _wrappedList : _bar()
>
> on findOffset(theEntry)
> repeat with n from 1 to count (my _wrappedList's _List)
> tell my _wrappedList
> if (item n of it's _List) = theEntry then return n
> end tell
> end repeat
> error "Item '" & theEntry & "' not found."
> end findOffset
>
Disclaimer: The 'Serge list' does nothing to speed findOffset(theEntry)
Until now I believed the surest way to get a response was to post BS :)

_____________________________ Andy
_______________________________________________
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.

References: 
 >Compile time Serge Surge (From: Andy Wylie <email@hidden>)

  • Prev by Date: Re: List sorting dilemma
  • Next by Date: Re: iTunes play - pause script
  • Previous by thread: Compile time Serge Surge
  • Next by thread: Classic Finder Information
  • Index(es):
    • Date
    • Thread