JavaScript date validation

I was searching the web for JavaScript date validation code. All I found were lots of really bad ideas. Some were quite complicated. John Gang was on the right track. I didn’t see Chris Hogben’s article initially, but he used the right algorithm. Still, nobody offered the complete solution. Given a date string YYYY-MM-DD, is …

Come to my SXSW panel on user interface consistency

At this year‘s SXSW Interactive festival, I’ll be moderating the panel Getting to Consistency: Don’t Make Your Users Think. The blurb: Predictable and consistent software is much easier to use. This session explores interface consistency, examples of consistency failures and their consequences. This is going to be a really interesting discussion. I have three fantastic …

Address Book AppleScript example

Here’s a simple AppleScript that exports all of the email addresses in your Mac OS X address book as a comma-separated list: tell application “Address Book” set emailList to {} set peopleCount to (count every person) repeat with i from 1 to peopleCount set emailList to emailList & (get value of every email of person …