1. Start up the script editor.
2. Turn recording on.
3. Switch to Finder
4. Move a couple of files around
5. Switch back to editor
6. Stop recording
7. Save script as a file
8. End of tutorial
You should see lots of "tell type name" to do something with things. That's basically AppleScript, it's about sending AppleEvents which are defined in the target applications dictionaries. Oh, and a few variables and flow control. Where it gets fancy is when people integrate with MacHTTP and start writing web-sites in AppleScript, look for those samples around.