I’m an AppleScript newbie and I was wondering how do I make a script that would type some text in a text field in some application. My goal is to have a script that activates Adium, types a few words and finally uses the return key to send them.
Model: iBook G4 (Mid 2005)
Browser: Safari 525.27.1
Operating System: Mac OS X (10.5)
The way you type into a text field depends on the application. Some apps are set up so you can specify where and what you type. Filemaker Pro and Excel are like that. To find out the specifics for the app, you need to check out the apps’ dictionary (look under the File menu in Script Editor). For other apps, you can use UI scripting. This allows you to attack the problem using more basic user interface elements. Check out “UI Browser” from Prefab Software. Also there are tutorials on some of this in this forum site. My favorite way is to simply do a search for what I’m looking for here. Often, someone’s already asked the question and gotten an answer.
I don’t know Adium at all, so I can’t help you further. Good luck. Hope I helped.