Getting the current UNIX timestamp with AppleScript
Written September 2, 2006. Tagged OS X, AppleScript.
Since I couldn't find the answer on Google when I needed it:
(do shell script "date +%s") as integer
Or, verbosely (and possibly not portable across date formats):
current date - time to GMT - date "1970-01-01"