is this possible - script to press a button

Hi. I am very new to this and i was looking for a a way to create a script that will open a program and the press a button, type in my admin password, then click another button. Is this even remotly possible? thanks

Model: Dual 867 MDD
Browser: Safari 417.8
Operating System: Mac OS X (10.4)

more info - the return key does not click the button

If neither return nor enter will click the button and it’s not Safari, then it’s still possible, but ugly.

It is possible. The button thing will work, but you may have to use an app called “Extra Suites” to do it. It is not tough to do. What are you trying? Here is sort of what it would probably look like:

Tell app “itunes” to activate
set {x,y} to position of button 1 of window “itunes”
tell app “extra suites”
ES move mouse {x,y}
ES click mouse
end tell
tell app “system events”
keystroke “password”
end tell
set {x,y} to position of button 2 of window “itunes”
tell app “extra suites”
ES move mouse {x,y}
ES click mouse
end tell

This subject has also cropped up in one or two other discussions recently. You can download Extra Suites to try before you buy (at a modest cost).