applehelpwriter.com
Using Cocoa in AppleScript
Visit the post for more.