• 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: Applescript quick question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Applescript quick question


  • Subject: Re: Applescript quick question
  • From: "Mark J. Reed" <email@hidden>
  • Date: Thu, 5 Jun 2008 15:48:33 -0400

You've got your logic in the wrong place.  What you want is this:

set found to false -- important!

repeat with thisEmail in email of Contact
    if value of thisEmail contains "@domain" then
       set found to true
       exit repeat
    end if
end repeat

if not found then  -- OUTSIDE the loop!
...
end
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: Applescript quick question
      • From: Joel Esler <email@hidden>
References: 
 >Applescript quick question (From: Joel Esler <email@hidden>)

  • Prev by Date: Re: no exit!
  • Next by Date: Re: Applescript quick question
  • Previous by thread: Applescript quick question
  • Next by thread: Re: Applescript quick question
  • Index(es):
    • Date
    • Thread