The Mac equivalent of WSH is OSA, the Open Scripting Architecture. AppleScript is the best-supported language, but it tends to infuriate programmers; fortunately, there are a third-party JavaScript ...