How do I keep the dialog box open after clicking a button?
Situation:
Situation:
how do i get the first dialog to stay open when i click the download buttonset question to display dialog "What do you want to do?" buttons {"Quit", "Download", "Start >>"} default button 2
set answer to button returned of question
if answer is equal to "Quit" then
tell application "System Events" to quit
end if
if answer is equal to "Start >>" then
set asker to display dialog "Which Machine?" buttons {"1st Machine", "Other machine(s)"} default button 1
if answer is equal to "Download" then
tell application "Safari"
activate
do JavaScript "window.open('http://www.downloadthefile.com')" in document 1
end tell
end if