Re: class ktxt, original discovery
Re: class ktxt, original discovery
- Subject: Re: class ktxt, original discovery
- From: Michael Terry <email@hidden>
- Date: Tue, 2 Mar 2004 23:04:45 -0800
On Mar 2, 2004, at 1:30 PM, Richard 23 wrote:
Nah, R23 probably just got bitter because he spent so much
time working on his silly AppleScript website only to find
that Apple was discontinuing their free homepage service.
When offered the option to pay for the privilege he stomped
off in a huff.
Speaking of which, the other day I was browsing the archive I made of
your site just before it went kaput, and I saw how you spoofed the
ternary operator that some languages apparently have. I saw it a couple
years ago, but couldn't appreciate it at the time. Now that I've got a
little more experience, I wish for it regularly. Thought you might be
interested in this version:
--
on |?|(test, ifTrue, ifFalse)
if test then
ifTrue
else
ifFalse
end if
if result's class is handler then
script
property || : result
end script
result's ||()
else
result
end if
end |?|
--
Mike
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.