Improved AppleScripts examples