Libraries Using Libraries?
Libraries Using Libraries?
- Subject: Libraries Using Libraries?
- From: Christopher Stone <email@hidden>
- Date: Tue, 29 Mar 2016 14:20:25 -0500
Hey Folks,
For 20 years I've used Script Debugger's library system.
Now I'm in the process of converting to the Mavericks+ library system.
In Script Debugger all libraries attached to a script share the same space, and interdependencies are not a problem.
In the new library system it would appear that a library cannot reference handlers in another library.
For instance:
I have all my find and replace related handlers in a find-library called “FLb”.
Virtually all of my other libraries have dependencies on handlers in FLb.
Is it possible for libraries to call other libraries?
I've tried placing:
use FLb : script "FLb"
use scripting additions
In a secondary library (sLB) and calling a handler that uses my change-text handler:
on someHandler()
set srcData to "Is this Goofy?"
set srcData to cng("Goofy", "Kosher", srcData) of FLb
return srcData
end someHandler
So:
use sLB : script "sLB"
use scripting additions
someHandler() of sLB
Returns to the calling script:
"Is this Goofy?"
The cng() handler is not executed.
Am I going to have to build another monolithic library?
TIA.
--
Best Regards,
Chris
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden