AppleScript is a very cool scripting language which can be used to automate tasks on your Mac.
It is not case sensitive and uses simple English terms. It provides a simple and effective way for communication between your Mac and the Applications running on it. Here are few examples:
For me, the difference between scripting and programming is the nothing but the simplicity. Writing scripts is comparatively simpler than programming. This book contains Script as well as screenshots. To download all the scripts used in this book, click here. The scripts can be read online on Gists.
Make sure you have a Mac. We will use AppleScript Editor. It is an application which comes along with Mac OS X.