display dialog with buttons?

I know how to set a variable to the text returned of a dialog. I also understand how to make buttons. I have a dialog that has a default answer. This default answer may change any time. So, rather than hitting cancel and starting over with the script, I wanted to add another button. I will call it “refresh”. When it is pushed, it will display the new default answer in the same dialog. Is there a way to add an additional button (rather than just the given “ok”, “cancel”) to a text returned display dialog?

3 buttons:

display dialog "dialog" default answer "answer" buttons {"Refresh", "Cancel", "OK"} default button 3

You can’t change the default answer of an existing dialog, though.

This may sound dumb…but i cant get it. How do I use an if/then statement in the case that the defaal button is pressed?
got it…

tell application "Safari" to set BaseURl to URL of document 1
	set ParsedURL to button returned of (display dialog "Enter the base URL without the numeric ending" default answer BaseURl buttons {"Refresh", "Cancel", "Ok"} default button 3)
if button pressed is "refresh" then 
beep
end if

bonedoc,

Change the line:

if button pressed is "refresh" then

to

if ParsedURL is "refresh" then

PreTech