If you are new to AppleScript, and particularly if you are new to BBS, welcome! You’ve found the right place to ask for and get an answer or a link to an answer.
Why this intro? Because it is so common nowadays to jump into the middle of a site from a search engine link that many folks don’t ever go in through the front door and don’t take advantage of the rest of the huge collection of AppleScript wisdom available in MacScripter.
MacScripter is divided into this bbs (the forums), ScriptBuilders, Automator Actions, Scripting Additions, Resources/Books, unScripted, AppleScript FAQ, AppleScript Links, and Scriptable Applications sections. A brief description of these can be found here.