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

Compile time Serge Surge


  • Subject: Compile time Serge Surge
  • From: Andy Wylie <email@hidden>
  • Date: Thu, 25 Jul 2002 18:02:33 +1200

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

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

  • Follow-Ups:
    • Re: Compile time Serge Surge
      • From: Andy Wylie <email@hidden>
References: 
 >Re: elementary 'display dialog' question (From: Christopher Nebel <email@hidden>)

  • Prev by Date: Re: AppleScript supported in Mac OS X Server?
  • Next by Date: Re: iTunes error
  • Previous by thread: Re: elementary 'display dialog' question
  • Next by thread: Re: Compile time Serge Surge
  • Index(es):
    • Date
    • Thread