?

Log in

No account? Create an account

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
   activate
   end tell

Tags:

Profile

14L
szasz
Charley

Latest Month

July 2013
S M T W T F S
 123456
78910111213
14151617181920
21222324252627
28293031