Kernel Panic running script that launches Classic
Kernel Panic running script that launches Classic
- Subject: Kernel Panic running script that launches Classic
- From: david craig <email@hidden>
- Date: Wed, 2 Jan 2002 15:48:28 -0500 (EST)
Oh, what joy. My first attempt at an AppleScript in OS X brought my
very first bouncing baby kernel panic along with the new year. (To be
fair, it's the only one I've had since I first began using the public
beta.)
I was attempting to begin a login script that would run as a login item.
(What I'm trying to work around here are a host of problems that first
appeared when I installed OS X 10.1.2, and I eventually traced to having
a Classic application as a login item.) The script hangs out for a
while to let the system get up and running, then launches Alpha (a
Classic text editor), then Terminal, hiding each once finished
launching.
I know very little about AppleScript -- a total amateur. But I will
*NOT* try this again until I have some clear sense of what could be so
wrong as to lead to a kernel panic. There was some disk corruption
that required several runs of fsck to eliminate as a direct consequence,
and I don't care to encourage that sort of thing.
The script is short enough that I've appended it below. I first created
this years ago on a much slower Mac (which may explain a little of
its structure), with the help of folks on this list, as a matter of
fact. Alternatives that won't do horrible things to my computer are
welcome.
Thanks,
David Craig
<
http://www.panix.com/~dac/>
tell application "Finder"
delay 45
with timeout of 240 seconds
run application "Alpha"
repeat until (exists of process "Alpha")
end repeat
if exists of process "Alpha" then
with timeout of 120 seconds
set visible of process "Alpha" to false
end timeout
end if
run application "Terminal"
repeat until (exists of process "Terminal")
end repeat
if exists of process "Terminal" then
with timeout of 30 seconds
set visible of process "Terminal" to
false
end timeout
end if
activate
end timeout
end tell