• 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: Takaaki Naganoya <email@hidden>
  • Date: Thu, 2 Sep 2010 01:36:35 +0900

Thanks Phillip,

I think that the essential matter is.... the author make the loader which fit to themselves.
For 10 years ago, my friend Mr.Suzuki made a script loader "AS Runner". 
I met him and talked about it. But I could not understand his word and program (now I can).

http://www.h5.dion.ne.jp/~maclab/

I think it is the time to talk about this theme with each of you.


On 2010/08/30, at 20:18, Philip Aker wrote:

Greetings all,

Sorry for a delayed reply. This topic and all your comments have been on my mind however and this post is the start of catching up.

First of all, I think that Takaaki (.pdf) and Ed (via AppleScript command illustrations) are right in thinking KISS (Keep It Simple Stupid) methods. In a sense, that's what I have been trying to arrive at when talking about a shared property list for script libraries. So maybe the question to ask about it is:

What is the simplest form for the property list that can provide good facilities for the greatest number of users?

Here the 'users' are not only scriptors at various levels but also developers providing services to scriptors and even the cut 'n paste crowd. And the 'form' means that: "What description of libraries provides the most bang for the buck?". I.e., how compact can it be yet still be useful to various kinds of users? In the case of property lists, which are quite verbose, the compactness refers to the minimal number of keys needed to attain a viable and interchangeable description. The outline of the library description I currently envision (and implement) for an interchange format is shown the end of this post. It is extensible.

Just below are links to the stuff I've been working on along these lines. However, the thing to base any comments on is not the software itself, but rather the form of the property list it creates. I believe a basic form which is extensible can provide for the needs of all the various kinds of users mentioned above. There is an overview at the top of <http://www.vcn.bc.ca/~philip/mm/ModuleManager.html> and a bit of an outline of what I think is getting closer to "good form" at <http://www.vcn.bc.ca/~philip/mm/ModuleManager.html#MMLibraryDescriptionCreateMinimal>. 

The software consists of a framework and a test file showing how to call into the framework APIs. These two items are used in a test osax, Carbon app, and Cocoa app Xcode project which uses the 10.5 SDK. I have also compiled the framework with the 10.4 SDK and can make that version available if anyone wants to try it. Download it here:

    curl -O http://www.vcn.bc.ca/~philip/mm/MMTesting.0.5.zip

Note that the framework level interface is currently not for AppleScript users proper. Its goal is to present facilities which make it easy for developers to create shell tools, osaxen, and applications which all levels of scriptors can use.

If you can "see" into the property list form discussed, I'd like to know if you think there is _basic library information_ it can't contain to make it useful as an interchange format. For Tommy and Tetsuro, this might mean technical things which you need. For Takaaki and Ed, it probably means if you can see a straight-forward and simple AppleScript vocabulary evolving from the listing of the seven main areas at the top the HTML file. For Shane, I think it means a regex search though all library titles, file names, and scripts (test, properties, and handlers) and a filtering of the clip-able result in a text view.

###

Current library description overview:

Library
BaseURIString
Files
Kind
[array of file descriptions]
Flags
IsReserved
Kind
PermitOverrides
SearchRecursively
TrackAliases
[custom key/value pairs]
FolderInfo
Kind
POSIXPath
URLString
Kind
ParentID
Properties
Kind
Title
[custom key/value pairs]
UUID
[custom key/value pairs]


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

Democracy: Two wolves and a sheep voting on lunch.


--
Takaaki Naganoya
Piyomaru Software
http://piyo.piyocast.com
email@hidden
twitter:piyomaru

PiyoCast Web (Podcasting with Music!)
http://www.piyocast.com
Free AppleScript Library "AS Hole"
http://www.piyocast.com/as/




 _______________________________________________
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: Philip Aker <email@hidden>
  • Prev by Date: Re: Library Modules and Library Loaders
  • Next by Date: Re: Selected email paths
  • Previous by thread: Re: Library Modules and Library Loaders
  • Next by thread: Re: Library Modules and Library Loaders
  • Index(es):
    • Date
    • Thread