• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How to 'load' osaxen
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >How to 'load' osaxen (From: "Serge Belleudy-d'Espinose" <email@hidden>)

  • Prev by Date: automating tasks!
  • Next by Date: Re: Script to copy changed files?
  • Previous by thread: How to 'load' osaxen
  • Next by thread: Re: How to 'load' osaxen
  • Index(es):
    • Date
    • Thread