display dialog "Select action to perform." buttons {"Restart Dock & Finder", "Independent Restart", "Cancel"} with title "Reloader"
set the button_pressed to the button returned of the result
if the button_pressed is "Restart Dock & Finder" then
do shell script "killall Finder;killall Dock"
else if the button_pressed is "Independent Restart" then
display dialog "Select an independent action to perform." buttons {"Restart Dock", "Restart Finder", "Cancel"}
set the button_pressed to the button returned of the result
if the button_pressed is "Restart Dock" then
do shell script "killall Dock"
else if the button_pressed is "Restart Finder" then
do shell script "killall Finder"
end if
end if
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.