Classic status & startups

Continuation of the check on whether Classic is running… This one will start Classic if it isn’t running.

OS version: OS X

tell application "System Events" to set IsUp to (name of every process contains "Classic Support") -- returns true or false
if IsUp then
	set theBut to button returned of (display dialog "Classic Is Running ..." buttons {"Quit Classic", "OK"} default button 2 with icon note)
	if theBut contains "Quit" then tell application "Classic Support" to quit
else
	set theBut to button returned of (display dialog "Classic Is NOT Running..." buttons {"Start Classic", "OK"} default button 1 with icon caution)
	if theBut contains "Start" then tell application "Classic Startup" to activate
end if