Conditional Code
Conditional Code
- Subject: Conditional Code
- From: Richard 23 <email@hidden>
- Date: Thu, 26 Apr 2001 07:29:39 -0700
To round out this flurry of posting on my part after an
uncharacteristic period of silence on my part (enjoyed it,
didn't you?), I thought I'd post a link to a recently
completed little article on conditional code in AppleScript.
Probably only of interest to propellorheads at heart.
The kind of people who, given a screwdriver, will happily
take things apart just to see how they work.
That's me. Now if only I knew how to put all this rubble
that surrounds me back together again!
It's presented as "Conditional Code 101" and touches on
such oddities as calling handlers by reference (the subject
of a recent thread here as I recall) and an implementation
of my friend, the ternary operator, common in C, Perl, Java,
JavaScript, tcl among others but absent from AppleScript.
<
http://homepage.mac.com/richard23/info/conditionalcode101.html>
I spent a good deal of time laying it out such that it looks
equally awful in Nav4, and IE5. iCab users will be a bit
confused since it has no CSS support yet. Haven't tried it
in Mozilla or Opera and don't even want to try it in Lynx.
Whatever. The pertinant examples are included in a script
which can be downloaded from a link cleverly concealed in
a maze of html.
The first 10 people who visit the page will be the first
ten who see it. Be sure to have dramamine on standby.
R23