• 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: Library Modules and Library Loaders
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Library Modules and Library Loaders


  • Subject: Re: Library Modules and Library Loaders
  • From: Philip Aker <email@hidden>
  • Date: Tue, 31 Aug 2010 14:26:24 -0700

On 2010-08-31, at 06:42:03, Tetsuro KURITA wrote:

>> Simple way is override “load script” command
>>
>> load script “name/space”
>> load script URL “http://some.url/script” load script file
>>
>> I'll check out overriding it in an osax, but I know I can already do what you need with a new command. Say 'import', would look something like:
>>
>> import "name/space" -- no slash start means it's in a module
>> import "name/space" from user module
>> import "name/space" in library "Logic Utilities" from local module
>> import "http://some.where/some.scpt";
>> import "/path/to/my.scptd" -- slash start means its a POSIX path
>>
>> set handler_names to import handler names from "http://some.where/some.scpt";
>>
>>
>> This might be the better way because then there would be no confusion as to what is Apple supplied and what is not.


> ModuleLoader has already provide a similar command called "load module".

> But this command is just an extra of ModuleLoader, because simple osax command can't resolve dependencies.

Hi Tetsuro,

Do you mean osaxen receiving AppleEvent descriptors like 'object' and 'object specifier'?


> There is a reason why both of ModuleLoader and AppleMods load modules through a  script object. This mechanism causes complex syntax to load modules.

Yes, and I think, like Takaaki and Ed, that this is one of the reasons that library loaders are not often used. So we have to fix it.


> But It may be impossible to develop simpler syntax than one of ModueLoader without AppleScript language supports.

I can provide language support if needed. But first I will try some osax tricks because they could be easier.
I will contact you when I start to implement it (in about 2 weeks) so it can fit well with what you are doing.

An update of ModuleManager.framework to 0.5.1 is now here: <http://www.vcn.bc.ca/~philip/mm/ModuleManager.html>.
The download link is near the top of the page.


Philip Aker
echo email@hidden@nl | tr a-z@. p-za-o.@

Democracy: Two wolves and a sheep voting on lunch.

 _______________________________________________
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: Library Modules and Library Loaders
      • From: Tetsuro KURITA <email@hidden>
References: 
 >Library Modules and Library Loaders (From: Philip Aker <email@hidden>)
 >Re: Library Modules and Library Loaders (From: Philip Aker <email@hidden>)
 >Re: Library Modules and Library Loaders (From: Tetsuro KURITA <email@hidden>)

  • Prev by Date: Re: Library Modules and Library Loaders
  • Next by Date: Re: Library Modules and Library Loaders
  • Previous by thread: Re: Library Modules and Library Loaders
  • Next by thread: Re: Library Modules and Library Loaders
  • Index(es):
    • Date
    • Thread