Monday, July 23, 2018

#1 2003-06-27 01:04:58 pm

Trash Man
Sanitation Department
Registered: 2005-10-20
Posts: 5336

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

Applescript:

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


One mans trash is another mans treasure


Filed under: System, Classic

Offline

 

Board footer

Powered by FluxBB

RSS (new topics) RSS (active topics)