I’m having a look at AppleScript. The syntax seems a bit too simplified to me as a PHP programmer, but if you ignore the verbosity it seems quite capable. Haven’t tried to write anything of my own yet, mostly because I can’t think of anything useful to try.
Of interest, related to AppleScript:
- Scripting Safari URLs
- Safari Source in BBEdit
- System wide Script Menu in OS X as well as a nice trick for said menu
- AppleScripter.net for everything AppleScript