re: storing preferences
re: storing preferences
- Subject: re: storing preferences
- From: Charles Arthur <email@hidden>
- Date: Tue, 4 Nov 2003 14:18:01 +0000
On Tue, 4 Nov 2003 14:06:50 +1100, "leo" <email@hidden> wrote:
>
i) for a very little itunes script i have some preferences which i want to
>
store somewhere.
>
>
i guess, an xml file is the way to go under os x. does applescript has some
>
functions for accessing/handling properties in xml-files? or how do you
>
store preferences?
If they're not big (or even if they are) you could just store them as a
property of the script, saved as an application.
Else if you're talking XML and prefs then you're heading upstream into
Applescript Studio/Project Builder/XCode, where you get things like
"default read com.apple.preferences.mylittlescript" (or similar).
>
ii) additionally i want to edit the prefs somehow.
You could edit the properties, if they're in an application (and thus saved
between runs of the app) by bringing up properties. If it's a "little"
script, properties is the better way to go. I wrote an iTunes-watching app
and saving prefs (which I tried to do the "proper" way) drove me a little
mad. I probably would have done better, in retrospect, with properties.
Though this was a couple of years ago, when things were still developing
fast on AStudio. It has a separate mailing list if you're going to pursue
this.
>
of course i can write another little script for this but the nicest thing
>
would be to hook in the preference pane of itunes. is that possible? or
>
hooking in the system preferences?
It's possible, but I'd really not recommend it, at the cost of completely
screwing up your system. What *is* this script, anyway??
Charles
--
----------------------------
http://www.ukclimbing.com : 1100+ British crags, 350+ British climbing
walls - searchable by distance and anything else you care to think of -
with weather forecasts for every one, plus maps, articles, news and
features. And there's even a cool shop attached.
________________________________________________________________________
This email has been scanned for all viruses by the MessageLabs Email
Security System. For more information on a proactive email security
service working around the clock, around the globe, visit
http://www.messagelabs.com
________________________________________________________________________
_______________________________________________
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.