• 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
Re: AS Library Question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AS Library Question


  • Subject: Re: AS Library Question
  • From: Chris Page <email@hidden>
  • Date: Thu, 17 Dec 2015 07:16:41 -0800

[Sorry everyone for my large number of replies on this thread, especially the ones that may seem redundant. I started writing replies before I discovered how many messages there are in this thread, and it's going to take some time to read ahead to figure out which things I can avoid replying to.]

> On Dec 15, 2015, at 10:11 AM, has <email@hidden> wrote:
>
> Shane Stanley wrote:
>
> > On 15 Dec 2015, at 11:26 AM, has <email@hidden> wrote:
> >>
> >> you'll have to get rid of any sub-modules (which the AS loader doesn't support)
> >
> > I'm not exactly sure what you mean here,
>
> AM Loader allows libraries to contain their own libraries, allowing large complex libraries to themselves be modularized for easier maintenance and reuse. e.g. See the AM Types.scptd library, which has several sub-libraries in its own Scripts folder. The section in <http://applemods.sourceforge.net/using-loader.html> explains how Loader searches various scopes (it'd have been clearer with a diagram, but eh it was a rush job). Pretty much every language supports this, e.g. see Python packages, Cocoa sub-frameworks, etc.
>
> AS's library loader, from what I can tell, has no such concept of hierarchical or private namespaces.

You can place libraries inside library bundles. The library search path--documented in the ASLG--searches the bundle of the currently executing script first.

--
Chris Page
The other, other AppleScript 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: AS Library Question
      • From: Bill Cheeseman <email@hidden>
References: 
 >Re: AS Library Question (From: has <email@hidden>)

  • Prev by Date: Re: AS Library Question
  • Next by Date: Re: AS Library Question
  • Previous by thread: Re: AS Library Question
  • Next by thread: Re: AS Library Question
  • Index(es):
    • Date
    • Thread