Re: Libraries and effiency
Re: Libraries and effiency
- Subject: Re: Libraries and effiency
- From: Tetsuro KURITA <email@hidden>
- Date: Mon, 16 Aug 2010 10:50:01 +0900
> As far as libraries and efficiency go, I probably could use and should use libraries for some of my scripts. Plus, I use Script Debugger and it has a built in method of including handlers in scripts, which I also could/should use, but I don't. I mostly copy and paste (or use the SD snippets function) which is what I think most appleScripters do.
>
> For me, I find it easier to debug and maintain single flat scripts.
In my experience, such development style causes to limit size and functions of your script.
> Another issue is that none of the library loading systems I've looked at are intuitive or transparent. I know that's not important to everyone but it is to me.
Could you evaluate "ModuleLoader".
http://homepage.mac.com/tkurita/scriptfactory/en/XModules/index.html#ModuleLoader
I am interested in improving this system to be easy and comfortable.
> I like to look at a sample script or a dictionary and know what each command does. I like being able to read a script months or years after it was written and understand exactly what each line is doing. I don't get that with the library loaders I've seen.
>
> I have one system I've used where I store all my handlers in a stay open app, and launch and call then quit that from the main script. Very kludgy, but It works, I know what it's doing and it's easy to debug. I prefer that to any of the library loaders I've seen. It's more intuitive.
The documentation system is another topic from the library loader.
I have already developed a document generator for AppleScript.
http://homepage.mac.com/tkurita/scriptfactory/en/XModules/index.html#AppleScriptDoc
AppleScriptDoc generates well formated HTML documents from comments embedded
in source code link HeaderDoc/JavaDoc.
Also the source code of AppleScriptDoc may show the power of library. The
core of this application are written by AppleScript.This show why we are
interested with the library loader.
AppleScriptDoc consists of many modules/libraries.
The task of AppleScriptDoc is complex. Such application can not realized
with flatten AppleScript.
You may not interested in development of such big application.
But I hope you understand the library/module loading system can expand limitation
of the development.
=======================================================
Tetsuro KURITA
E-mail: email@hidden
http://homepage.mac.com/tkurita/scriptfactory/en/
=======================================================
_______________________________________________
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