I know this will sound like a really stupid question but I cannot remember how to tell a script to run again. What is the statement for this?
Example:
set doOverDialog to button returned of display dialog ¬
"Do you want to play again?" buttons {"Yes", "No"} ¬
default button "No" with icon 2
if doOverDialog = "Yes" then
??????????
else
quit
end if
What goes where the ??? is? Sorry for being so simple-minded.
If Greg’s suggestion isn’t what you are looking for, maybe this will work.
set doOverDialog to button returned of (display dialog ¬
"Do you want to play again?" buttons {"Yes", "No"} ¬
default button "No" with icon 2)
if doOverDialog = "Yes" then
run me
else
return
end if