The second script, "Classic Single Serving", enables Classic, launches it, waits for it to finish launching, and then disables future launches.
Read the rest of the article for the scripts...
Classic Permissions
This script pops up a dialog box allowing you to Enable or Disable future Classic launches.
- Enter your admin password on the first line.
- Save the script as an application.
- Since your admin password in is the script, you may want to save as Run-Only.
set ps to "enter your password here"Classic Single Serving
set pth to "'/System/Library/CoreServices/Classic Startup.app'"
do shell script "ls -l '/system/library/coreservices/classic startup.app'"
if result = "ls: Contents: Permission denied" then
display dialog "Classic is Disabled." with icon stop ¬
buttons ["ENABLE", "Cancel"] default button 2
do shell script "chmod 0754 " & pth password ps ¬
with administrator privileges
else
display dialog "Classic is ENABLED." with icon note ¬
buttons ["Disable", "Cancel"] default button 2
do shell script "chmod 0644 " & pth password ps ¬
with administrator privileges
end if
This script Enables Classic, launches Classic, waits until Classic has finished launching, and then Disables future Classic launches.
- Enter your admin password on the third line.
- Save the script as an application. Check the Stay Open checkbox while saving.
- Since your admin password in is the script, you may want to save as Run-Only.
global ps, pth
on run
set ps to "enter your password here"
set pth to "'/System/Library/CoreServices/Classic Startup.app'"
do shell script "chmod 0754 " & pth password ps with ¬
administrator privileges
tell application "Classic Startup"
activate
end tell
idle
end run
on idle
set xx to "Classic Startup"
tell application "Finder"
set yy to name of process xx
end tell
try
if yy = xx then set p to 1
set zz to 1 as boolean
on error
set zz to 0 as boolean
end try
if not zz then
do shell script "chmod 0644 " & pth password ps with ¬
administrator privileges
quit me
end if
return 5
end idle

