I successfully converted a stand-alone script into an extension!
I successfully converted a stand-alone script into an extension!
- Subject: I successfully converted a stand-alone script into an extension!
- From: "Mec E Man" <email@hidden>
- Date: Wed, 10 Jan 2001 02:55:37 -0700
I successfully converted a stand-alone AppleScript into an "appe" extension.
I'll start by saying, yes, I am probably the first person to actually create
a system extension directly from a stand-alone AppleScript app (however I'm
not sure on this :). I made an extension that (every 30 seconds) checks to
see if server software is running, and if not, it launches it, then hides
it.
the way to make an extension from a script: make your script "stay open"
and "never show startup screen" ....
you may or may not want to use a non-cpu intrusive pause routine (uses the
idle handler), the routine also allows one to QUIT the script durring the
pause.
make sure you use the "try" command a lot to eliminate error dialogues (I
believe... i'm an ammature so i may be wrong here). Any dialogues or
windows will crash the computer if in an appe... only "Global Floaters" are
acceptable for an appe, which I couldn't seem to make with AppleScript.
make sure the script uses NO windows or user interactions. This will crash
it.
also, you must open the Resource fork of the script, then change
the SIZE resource so that there is a "1" selected for "background only".
You then must change the file type to be "appe"
put the appe into the extensions folder.
there ya go, you've got an extension!!
you can also manually kill the process, or launch it, without re-booting...
I suggest u try a program called "Peek-a-boo" ... it lets you "Launch" and
"Kill" a process, even when it's an extension !! (well, only if it's an
"appe" extension)
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at
http://www.hotmail.com.