Before we begin our long but intriguing hike through the Finder commands and classes, we will first get our feet wet with five short Finder scripts. These are scripts that I use all the time, so often that I frequently cut and paste them into larger scripts. Together, they help demonstrate the power and ease of Finder scripting. These scripts are designed to accomplish the following tasks:
Get the Operating System version that is running on the machine that hosts the script
Display the file type and creator type of files that are dragged to this “droplet”
Go into specified directories and delete the notorious “Word Work Files” that Microsoft Word 98 creates
Get the free space of each disk or volume on the desktop
Display all running processes or programs on your machine and give you the option to shut down some of them, including invisible background applications