I just purchased my first Apple computer (entry-level iMac with Snow Leopard), and am beginning to learn the capabilities of Automator, AppleScript, Cocoa, Xcode, etc.. In Windows, I have a script I created in a utility called AutoIt (it allows a basic script to be coded that can execute and control other programs, simulate keyboard typing and mouse movements, and also has basic string/variable manipulation and logic functions). What would be the best script/language/tool in OS X to simulate typing into any program? I need this to work with a program that doesn't necessarily have the API coded to allow easy scripting access to its functions, so need to know how to create the actual virtual keyboard presses (and also how to execute the program and pause the script to wait for it to be load and unload at certain points).. Any sample scripts that include use of these given functions would be greatly appreciated! Thanks!