• 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: "Håvard, Inkognito" <email@hidden>
  • Date: Thu, 14 Jun 2001 16:13:18 +0200

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. ?

Serge,

"run script" will do this. I guess you could include:
run script 1+1
at the end to activate the new OSAXen. (I have not tried that).

I have however been using the below as an application for a while. Run after you add/remove OSAXen and it should activate/disable them. I cannot remember that it have ever failed.

-------------start script: here are some very long lines....
with timeout of 10 seconds
set didntwork to false
set omstart to ""
try
run script 1 + 1
on error
set didntwork to true
end try
end timeout
if didntwork then
set omstart to button returned of (display dialog "Had trouble with activation, maybe a restart would be best?" buttons {"Cancel", "Restart"} default button 1 with icon 0)
else
display dialog "New OSAXen activated." with icon -20024 buttons {"OK"} default button 1 giving up after 20
end if
if omstart = "Restart" then tell application "Finder" to restart
----------------end of script

Hope this is of any help,
Havard


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

  • Prev by Date: Re: XPress: error checking snip slows script
  • Next by Date: Re: Question about "info for" command
  • Previous by thread: Re: How to 'load' osaxen
  • Next by thread: List delay - it's not just me!
  • Index(es):
    • Date
    • Thread