October 17th, 2008


Programming in English

I'm unconvinced of Applescript's utility as a programming language, but its extensive use of prepositions in its syntax does make for some very, er, friendly to read code. It's at least charming.

tell application "Adium"
   set theAccountList to every account whose status type is offline
   repeat with theAccount in theAccountList
      tell theAccount to go online
      end repeat
   end tell