• 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
Libraries Using Libraries?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Libraries Using Libraries?
      • From: Stan Cleveland <email@hidden>
  • Prev by Date: Re: contact group in outlook
  • Next by Date: Re: Getting the date of the next or current recurrence of an iCal/Calendar event
  • Previous by thread: Getting the date of the next or current recurrence of an iCal/Calendar event
  • Next by thread: Re: Libraries Using Libraries?
  • Index(es):
    • Date
    • Thread