Ah, Applescript. Almost, but not quite entirely unlike English. Boggling syntax since 1991:
They're formulaic, so you can come up with valid ones that aren't your own, but good luck doing that in a way that scales well and doesn't run your app afoul of the DMCA.