I have made a main library (located in: Users/ldicroce/Library/Script Libraries/Lux MainLibrary.scptd) which contains several handlers I use very often.
Then I have an additional library (in the same folder) called Lux TestLibrary.scptd, with contains different set of handlers. Since some of them use handlers which are in Lux MainLibrary’s handlers, at the top of the script of the Lux TestLibrary.scptd I have:
use AppleScript version "2.4" -- Yosemite (10.10) or later use scripting additions use script "Lux MainLibrary"
So far so good…
Now I have an applet which use both libraries.
So at the top of the script I have included:
use AppleScript version "2.4" -- Yosemite (10.10) or later use scripting additions use script "Lux MainLibrary" use script "Lux TestLibrary"
When I save this as Applet, I do not have any problem.
But if I then set in the “Bundle and Export Setting …” (of the File menu) the option “Include used user script libraries”, and then export this Applet as “Export Run-Only” → “Application (Apple”), SD crashes.
Even if both libraries are empty (only containing the “use script …” mentioned above), and the main script of the applet is just “beep” ( plus of course the “use script …” mentioned above), it still crashes …
Is this expected? Is there any way to overcome this?
PS: I know that there is a topic “Embedding script libraries that call other libraries” written by Shane, but in my case I am not moving, editing, or deleting the library(s) from the original (and default) location, I am only trying to export the Applet as Run-Only with embedded libraries.