Re: Libraries and effiency
Re: Libraries and effiency
- Subject: Re: Libraries and effiency
- From: Philip Aker <email@hidden>
- Date: Thu, 12 Aug 2010 07:17:13 -0700
On 2010-08-11, at 12:40:56, email@hidden wrote:
>>> Speed counts in the video world.
> No doubt. I think I get it now. Your software is faster as an Osax than a FBA (I didn't realize Osax were faster than apps),
Only marginally so per call. But these guys process 1/2 a Gig of clips on a regular basis so those fractional seconds add up.
> and your strategy to avoid terminology conflicts is to use terms that don't fit with the natural language metaphor, but that others are less likely to use.
[...]
> 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.
Apple's has a lot invested in the "one-button-click" philosophy. I can relate to that as well.
> 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.
This might speak to the commenting facilities available. In lowly C for instance, a header with HeaderDoc comments is an exponential step up from AppleScript. But even so, it's not the same as those languages in which comments are formally incorporated as legitimate objects and have introspective abilities.
handler name of me
my description
[...]
> As for how I'd like to call handlers in a library, I'm no Cal Simone, but ...
>
> Maybe I'd use a command like:
>
> using handlers from mySpecialLibrary
>
> end using handlers
>
> or
>
> tell me to use script library mySpecialLibrary
>
> -- where the variable mySpecialLibrary specified a path to a library
>
> or
>
> Maybe a command like:
>
> use script library "MyFinderHandlers"
>
> --where MyFinderHandlers was the name of a file located in an appleScript library directory.
>
Yes indeed. Any one of the above would be an exponential leap.
> Or
>
> tell application "AppleScript Library"
Second choice. However, not an unreasonable solution for the nonce.
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