<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.0.3" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Fun AppleScript Tricks (or not)</title>
	<link>http://www.wilcoxd.com/blog/fun-applescript-tricks-or-not.html</link>
	<description>Blog for project status and lab notes</description>
	<pubDate>Fri, 21 Nov 2008 01:02:37 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0.3</generator>

	<item>
		<title>by: Matt Strange</title>
		<link>http://www.wilcoxd.com/blog/fun-applescript-tricks-or-not.html#comment-3</link>
		<pubDate>Wed, 24 Sep 2003 20:06:51 +0000</pubDate>
		<guid>http://www.wilcoxd.com/blog/fun-applescript-tricks-or-not.html#comment-3</guid>
					<description>I write this as follows...
set allHit to true
repeat with each in ab
  if each is not in alpha then
    set allHit to false
    exit repeat
  end
end
--
The puzzle basically breaks down to a boolean AND test so  as soon as you find one item that fails, you can bail out.
If you want to check for any of the items (a boolean OR) try this...
set anyHit to false
repeat with each in ab
  if each is in alpha then
    set anyHit to true
    exit repeat
  end
end

</description>
		<content:encoded><![CDATA[<p>I write this as follows&#8230;<br />
set allHit to true<br />
repeat with each in ab<br />
  if each is not in alpha then<br />
    set allHit to false<br />
    exit repeat<br />
  end<br />
end<br />
&#8211;<br />
The puzzle basically breaks down to a boolean AND test so  as soon as you find one item that fails, you can bail out.<br />
If you want to check for any of the items (a boolean OR) try this&#8230;<br />
set anyHit to false<br />
repeat with each in ab<br />
  if each is in alpha then<br />
    set anyHit to true<br />
    exit repeat<br />
  end<br />
end
</p>
]]></content:encoded>
				</item>
</channel>
</rss>
