• 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: Libraries and effiency
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Libraries and effiency
      • From: "Stockly, Ed" <email@hidden>
    • Re: Libraries and effiency
      • From: "email@hidden" <email@hidden>
References: 
 >Re: Libraries and effiency (From: Tommy Bollman <email@hidden>)
 >Re: Libraries and effiency (From: Philip Aker <email@hidden>)
 >Re: Libraries and effiency (From: Philip Aker <email@hidden>)
 >Re: Libraries and effiency (From: Tommy Bollman <email@hidden>)
 >Re: Libraries and effiency (From: Philip Aker <email@hidden>)
 >Re: Libraries and effiency (From: Philip Aker <email@hidden>)
 >Re: Libraries and effiency (From: "email@hidden" <email@hidden>)
 >Re: Libraries and effiency (From: Philip Aker <email@hidden>)
 >Re: Libraries and effiency (From: "email@hidden" <email@hidden>)
 >Re: Libraries and effiency (From: Philip Aker <email@hidden>)
 >Re: Libraries and effiency (From: "email@hidden" <email@hidden>)
 >Re: Libraries and effiency (From: Philip Aker <email@hidden>)
 >Re: Libraries and effiency (From: "email@hidden" <email@hidden>)

  • Prev by Date: Re: Libraries and effiency
  • Next by Date: Re: symlinks
  • Previous by thread: Re: Libraries and effiency
  • Next by thread: Re: Libraries and effiency
  • Index(es):
    • Date
    • Thread