Re: Libraries and effiency
Re: Libraries and effiency
- Subject: Re: Libraries and effiency
- From: Philip Aker <email@hidden>
- Date: Wed, 11 Aug 2010 07:23:07 -0700
On 2010-08-10, at 22:12:12, Tetsuro KURITA wrote:
>>> Thanks for many interesting opinions.
>>
>
>> You're welcome, but I see I have not convinced you to sign up yet.
> I'm sorry not to agree with your suggestions.
> My less experience may cause less understanding of your opinion.
> My opinion will change in the future.
I believe I didn't make things quite clear about how flexible the design is.
• You don't have to use configurations if you don't need them. It's very easy to walk the libraries list in AppleScript and not much more work for C code.
• The "reserved" item in the 3 default folders only means you can't delete them. You can change the settings like "RecursiveSearch"
• I have now put in an ID for the 3 default folders so people can name them in their native language.
• I have incorporated your request for Alias data and also added HFS paths and bookmarks data. You can use the "URIString" value to keep your paths just like in ModuleLoader.
>> In your comments almost everything is about ModuleLoader.
>>
>> But the idea of using a shared property list is about the benefit for the AppleScript community.
>>
>> Maybe think about that…
> I feel talking without a real implementation is nonsense.
> Then I imaged the case of adopting your opinion to my implementation.
Fair enough. I think I'm getting closer to a very clear base design that anyone can use. But also make it so that it is very easy to extend for their purpose.
After any more comments at the design level I will prepare a C interface, a few scripting examples, and documentation.
Actually anyone could read the keys right now and construct a minimal plist file directly from AppleScript.
Just in case there would be some issues with aliases and bookmarks, I put in a boolean-valued key called "TrackAliases".
Version 0.4 has a small tool to check reading the alias data (shown as a POSIX path in Terminal). It gets a AliasHandle, and FSRef in C code so you can use whatever of those you prefer.
Here is the small tool to create plist version 0.4. Please remember to delete the old one at ~/Library/Preferences/info.libraries.osascript.plist. This tool will also create the Module folders if they don't exist.
curl -O http://www.vcn.bc.ca/~philip/ScriptingLibraryDesignBeta04.zip
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