Re: Defaults (was Re: Opening System Preference Panes)
Re: Defaults (was Re: Opening System Preference Panes)
- Subject: Re: Defaults (was Re: Opening System Preference Panes)
- From: John W Baxter <email@hidden>
- Date: Sun, 1 Sep 2002 11:48:42 -0700
At 12:10 -0400 8/31/2002, email@hidden wrote:
>
I just discovered defaults, and they are very cool. Does anyone know if the
>
defaults system is robust enough to use as a database in its own right? Can I
>
create my own "com.linkedresources.whatever" file and place thousands of
>
key/value pairs therein, where each key/value pair might be many K in length?
>
Or would that simply overwhelm the system? I know sorting and searching are
>
another issue, but I just need data storage and lookup.
1. Naming: com.linkedresources... is robust for Jeff because he owns
linkedresouces.com.
(Mentioned just so people won't think it's a generic sort of thing
anyone could use. Jeff, is it significant that you registered the domain
on an April 1?)
2. "Thousands...many K"...I would worry more than a little here. [I
wonder whether there will be a modern successor to the old "The Resource
Manager is not a database" injunction in the "Don't Abuse the Managers"
tech note.] At some point, there has to be a crossover to another storage
retrieval mechanism being "better." There's probably a reason Apple
doesn't store the screen saver images as hex strings in defaults format.
3. But...go for it. Just have the accessors--as I would expect you to
anyhow--well enough isolated that a switch to another storage system (MySQL
perhaps, or Berkeley DBM, or...) isn't painful to the remainder of the
script [collection].
--John
--
John Baxter email@hidden Port Ludlow, WA, USA
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.