Re: Library Modules and Library Loaders
Re: Library Modules and Library Loaders
- Subject: Re: Library Modules and Library Loaders
- From: Tetsuro KURITA <email@hidden>
- Date: Wed, 01 Sep 2010 13:52:31 +0900
On 2010/09/01, at 6:26, Philip Aker wrote:
>
>
>> 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'?
Consider loading two modules (ModuleA and MoudleB) which depending on same module (ModuleC).
The ModuleC of ModuleA will not share the instance with the ModuleC of ModuleA.
Also consider following statements.
set ModuleA to import "ModuleA"
set ModuleB to import "ModuleA"
I expect ModuleA is ModuleB. But loading modules by a simple osax command cause ModuleA is not ModuleB.
>> 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.
Do you have any ideas for syntax to load modules and to describe its dependencies ?
>> 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.
Are you a developer of Apple ?
I hope following ability of AppleScript.
* A handler can know a script object which call the handler.
* A script object returned from OSAX
* OSAX command can access the script object calling the command.
In my understanding, above functions can not implemented by current OSAX system.
=======================================================
Tetsuro KURITA
E-mail: email@hidden
http://homepage.mac.com/tkurita/scriptfactory/
=======================================================
_______________________________________________
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