• 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: check list routine
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: check list routine


  • Subject: Re: check list routine
  • From: "Arthur J Knapp" <email@hidden>
  • Date: Wed, 14 Mar 2001 17:25:28 -0500

> Date: Wed, 14 Mar 2001 06:38:03 -0600
> From: Rick Plummer <email@hidden>
> Subject: check list routine

> Does anyone know how to check a list of strings to validate a script before
> running?

I'm afraid that I don't really understand what you mean. Let
me know if the following is even close:


property listOfStrings : {"a", "b"}

on run

if ( startUpCheck() = true ) then

main()

else
tell me to quit -- or "error number -128"
end
end

on main()
-- whatever
end

on startUpCheck()

if item 1 of listOfStrings does not equal "a" then

return false

else if item x of listOfStrings dose not equal "b" then

return false

else

return true
end
end



Arthur J. Knapp
http://www.stellarvisions.com
mailto:email@hidden

Hey, check out:
http://home.earthlink.net/~eagrant/


  • Follow-Ups:
    • Re: check list routine
      • From: JollyRoger <email@hidden>
  • Prev by Date: Re: Extract Picture
  • Next by Date: Re: I reserve the right to pronounce "X" as "Ex"
  • Previous by thread: Re: check list routine
  • Next by thread: Re: check list routine
  • Index(es):
    • Date
    • Thread