LNSOSAX
LNSOSAX provides access to the LNS scripting additions on macOS Catalina and Mojave systems.
As described in the Mojave Brings In Big Security Changes blog post (see the Farewell Scripting Additions section), AppleScript scripting additions (OSAXen) are no longer supported in macOS Mojave. This presents a serious problem for older scripts which use the LNS scripting additions.
Installation
- Download and mount the LNSOSAX disk image
- Copy the LNSOSAX application to your Applications folder.
- Make sure that you launch the LNSOSAX application once manually. macOS will ask for permission to run the application because it was downloaded from the internet.
Usage
The LNSOSAX app makes it possible to continue using the LNS scripting additions with minimal changes to your scripts. Once LNSOSAX is installed, you only need to add these lines to the beginning of your script:
use scripting additions
use application "LNSOSAX"
That’s it. Now the LNSOSAX application is used to handle all the LNS scripting addition commands for your script. Please note that this will be slower than before, but your script will run.
Here’s a full example using the LNSOSAX AEPrint of
command:
use scripting additions
use application "LNSOSAX"
AEPrint of "Hello Again!"
LNSOSAX includes the following scripting additions:
- List & Record Tools.oxax
- property List Tools.osax
- XMLTools.osax
Backwards Compatibility
LNSOSAX can be used on macOS 10.12 (Sierra) and above. When using LNSOSAX on pre-Mojave systems, I suggest removing the LNS scripting additions from your system to avoid conflicts.
WARNING
You should find alternative means of accomplishing what the LNS scripting additions did for you in the past. The Script Debugger support forum provides a list of AppleScript libraries you can use. And then there is AppleScript Objective-C which gives you access to all the feature of Apple’s Foundation framework (and other Objective-C frameworks).
Support
If you have questions concerning LNSOSAX please post them on the Script Debugger Support Forum or MacScripter.net. Bugs can be filed as issues with the GitHub repository.
License
LNSOSAX is licensed under the MIT license (see the LICENSE file for details).
Source Code
Source code for LNSOSAX is available on GitHub. Pull requests are welcome.