There are many tutorials online as to where one can learn to use Applescript. Applescript is a scripting language developed by Apple inc. and used on the Mac computer system. If you want to learn to code Applescript then the best place to start would be MacWorld, as they have a very comprehensive tutorial on it that tells all the basics.