• 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: storing preferences
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: storing preferences


  • Subject: Re: storing preferences
  • From: julifos <email@hidden>
  • Date: Tue, 04 Nov 2003 11:19:23 +0100

> hi there
>
> 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?
>
> ii) additionally i want to edit the prefs somehow.
>
> 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?
>
> thanks and cheers, leo
>
> --__--__--

You can still store properties within your own script. If you prefer plist
files, you can take a look to "man defaults" in a Terminal window, whose
syntax is pretty easy:

do shell script "defaults read pref_file_name pref_name"

and

do shell script "defaults write pref_file_name pref_name new_value"

You still need some auxiliar handlers, to create the preferences file if it
doesn't exist, create an applescript list object from a plist array, and
back, etc.

Cheers...

jj
_______________________________________________
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.

  • Prev by Date: Re: Application Bundles in Panther
  • Next by Date: Thanks to all...
  • Previous by thread: Re: storing preferences
  • Next by thread: Thanks to all...
  • Index(es):
    • Date
    • Thread