Re: Compile time Serge Surge
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.