• 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: class ktxt, original discovery
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


References: 
 >Re: class ktxt, original discovery (From: Richard 23 <email@hidden>)

  • Prev by Date: Re: how to authenticate in order to run a sudo shellscript?
  • Next by Date: Re: How to make scripts reference multiple revs of an app
  • Previous by thread: Re: class ktxt, original discovery
  • Next by thread: Re: class ktxt, original discovery
  • Index(es):
    • Date
    • Thread