You can do it with environments provided with most OS's. The big difference is that it is not put in front of people to the same extent that makes it trivially discoverable, and available from the
second you press the on switch in the case of most of the 8-bits.
AppleScript is a particular peeve of mine. I was a long time Amiga user. I was used to "everything" being glued together via AREXX ports. OS X have the capability, yet the environment is very different. It is far more rare (presumably not Apple's or developers fault per se - more reflecting a different demographics) to see OS X applications manuals call out script integration as a major feature, or "hang" all its own automation off of it, even for the ones with good script integration (and though I'm a Linux user at home, this is a sore point: Linux script integration is woeful in comparison)