AppleScript is super awesome. It has got some cool features too. Consider the tell command. You would simply type:
tell application "Finder" -- insert actions here end tell
This is too much to write. Well in AppleScript, you can right click on the window and select Tell Blocks > Tell “Finder”.
Figure 3.1 Tell Blocks