Re: How to 'load' osaxen
Re: How to 'load' osaxen
- Subject: Re: How to 'load' osaxen
- From: Paul Berkowitz <email@hidden>
- Date: Thu, 14 Jun 2001 06:44:16 -0700
On 6/14/01 4:29 AM, "Serge Belleudy-d'Espinose" <email@hidden> wrote:
>
Hi all,
>
>
I wrote a little installer for one of my projects. It puts files in place,
>
including osaxen. I want the user to be able to download my archive, run the
>
installer then the program itself, but on first run the user gets an error
>
message that shows that the osaxen was not 'loaded'.
>
>
Of course restarting solves the problem, but this is unnecessary extra step
>
since just opening any script editor sort of updates the 'AS environment'.
>
So is it possible to script this - w/o even the need to find the script
>
editor, run it etc. ?
>
As you know, Script Editor is not scriptable. So, although you could tell it
to open some file (i.e. script) and maybe even, with a keypress emulation
osax like Sigma's or Sandi's, to type a space, there's no way you can tell
it recompile, save and close the file. You'd have to ensure that every user
had a scriptable script editor (Smile or Script Debugger)! Most unlikely.
You're best off doing what most installers do - include a dialog that says
after installing "To use your new software, you need to restart your
computer." , optionally with a button to press which restarts. If you feel
like getting super-fancy (I've never thought of doing this before), you can
even install a little applet in Startup Items folder that set things up
again on restart, then commits suicide by moving itself to the trash.
--
Paul Berkowitz