Hi, Robert.
Firstly, I must apologise for the faulty link I gave you the other day. It was a quarter to three in the morning here when I posted that - way past my bed time! Thanks to Jon for providing the correction.
I’m glad (and relieved!) that everything’s now working as it should. The “OSAXen” script is a bit slower than it was, since it now groups Apple OSAXen separately from scripting applications and third-party OSAXen in the ‘choose from list’ display. This seemed like a good idea at the time - and still does - but unfortunately, it takes three disk reads to arrange. I’ll have another look at it some time and see if I can speed it up. (Hmmm. I’ve just had an idea about that…) It’s noticeably slow on my older machine, but isn’t such an issue on my more recent one.
If you’re running the script itself as an application, you’ll also have to wait for the time it takes the script to launch. I use a utility called “OSA Menu”, which adds a menu to the menu bar from which you can execute scripts directly. There may be a “Lite” version of it on one of your Mac OS installation CD’s, but the “full” version of it is free as well.
Hi, Billary. Happy New Year to you too.
I can’t see anything in the scripts that might cause major system errors, so I suspect some instability in your own system. Have you tried the “usual culprit” measures like rebuilding the desktop, resetting the PRAM, etc.?
But as I hinted in a earlier reply, the “version 2” scripts are not actually [i]meant[/] to operate if there’s no editor open. This was initially what seemed the most convenient and most sensible way to deal with a problem I’ve encountered with one of my machines, which has both OS 9.2.2 and OS X on the same partition. When I double-click a Script Editor file in OS 9, the machine tries to open the OS X Script Editor - which “owns” the application code “ToyS” in the machine’s desktop file. However, if the OS 9 editor is already open - ie. it’s a running process in the Finder - it claims the code before the desktop file gets a look in. The same processes are involved when trying to open Script Editor with a script. It would be possible to ask the user to locate Script Editor itself on the first run of the script, but this seemed unnecessarily inconvenient given the likely use of the scripts.
Now that the scripts are once again compatible with Smile and Script Debugger, having an editor already open is a great help to the scripts in deciding which editor should open the dictionaries!
Thanks to you both for the feedback. Please let me know if you encounter any other problems with the scripts.