How to tell if a "display dialog" has "given

Hi All,

I have a portion of applescript, which I am wanting to be able to determine whether a display dialog step has given up.

That is, the coding is something like:

display dialog "StartUp Application" & return & "You have 10 Seconds to abort" buttons ["Abort", "Continue"] default button "Continue" with icon caution giving up after 10"

I am wanting to be able to determine whether the script has progressed because of the user failing to respond. So in instances where the “giving up after” timeframe has elapsed, I want to know how to find this out.

And ideas appreciated.

Thanks
Luke

set foo to display dialog "StartUp Application" & return & "You have 10 Seconds to abort" buttons ["Abort", "Continue"] default button "Continue" with icon caution giving up after 10
if gave up of foo is true then
	display dialog "The script gave up."
end if