September 24, 2003

Fun AppleScript Tricks (or not)

Filed under: Reanimate — Ryan Wilcox @ 3:56 pm

Take a look at the following Applescript. What do you expect to happen in both cases?

Snippet #1

set ab to {"a", "b"}
set alpha to {"a", "b", "c", "d"}

if ab is in alpha then
log ("ab in alpha")
else
log ("ab not in alpha")
end if

Snippet #2

set ab to {"a", "c"}
set alpha to {"a", "b", "c", "d"}

if ab is in alpha then
log ("ab in alpha")
else
log ("ab not in alpha")
end if

Click below for the answer to the riddle
(more…)

September 5, 2003

Sometimes Ya Gotta Look At It Differently…

Filed under: Reanimate — Ryan Wilcox @ 12:53 am

So I’ve been having problems with AppleScript Studio. A whole lot of problems, actually. And it all started when I tried to put a new component on my application…
(more…)