Return button

how do i make applescript push the return button???

: how do i make applescript push the return button???
I have not seen the context of your script, so i have to assume to things. If you are running OS9, and if your calling another dialog from within your script, then try this:
display dialog “Done” with icon 1 giving up after 1
If you are hooking to another application, control panel, etc, then I would recommend AutoType Osax. The syntax is fairly straightforward, and works like a charm.

: sorry i am in OS9 and all i am trying to do is select the highlighted button when a certain dialog windows appears.

"how do i make applescript push the return button??? "
In general, you don’t. Applescript is an inter-application communications language, not a macro language for simulating user input. Some OSAXen (Sandi’s Additions) can type characters (including returns) in some programs; that may solve your problem. Otherwise use Keyquencer or QuicKeys. Not all programs and utilities are scriptable. That some companies (including Apple) are too overwhelmed, too slow, too stupid, too lazy, or too indifferent to properly implement a scriptable object model in all their programs is to be expected.
The best way of pressing the return button is to (1) use a scriptable application that doesn’t produce dialog boxes when it receives script commands – and they shouldn’t do this; (2) learn the commands to script an application and so avoid the appearance of dialog boxes.
That said, when asking questions you must state your problem more clearly: application, OS, and the text of the script you’re working with.
mg

: "how do i make applescript push the return
: button??? "
. Otherwise use Keyquencer or QuicKeys.
Or might I suggest OneClick? Scripting the return button requires two words in OC. And, since you can have Applescript call the OneClick action–or vice versa–you can have the best of both worlds.