Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: com.apple.*.plist



gonzalo gon wrote:

>I was wondering if anyone knew if there is a property
>lits for things like: user icons(if someone changes
>the icon of his hardrive for example, is there any
>plist that tell you where the image he chose is?),
>system sounds, etc. I know that
>com.apple.desktop.plist stores a pointer to where the
>user's wallpaper is, so I was wondering if there is
>more similar plists like this, with info regarding,
>sounds(like application error sounds),icons,
>bookmarks, address book, etc.

The location and format of what you're looking for varies by what the
object is and what it "belongs" to.  They're not all stored in plist files.

A custom icon for a disk volume is located in the file named
".VolumeIcon.icns" in the root directory of the volume itself.  It's
formatted as a 'icns' resource.  Search ADC for details of that format.

Custom icons for files and folders are stored in a different way.

Off the top of my head, I don't know where a user's preferred sound is kept.

A general strategy for finding such settings is by opening your
Library/Preferences/ folder, changing the setting in System Preferences,
then seeing which file is changed.  View as List and sorting by mod-date is
a good idea.

There are also some system-wide preferences files stored in
/Library/Preferences/.  You should look there, too.  And some of the plist
files in both locations start with ".", and so aren't visible in Finder, so
you may have to use 'ls -la' to find some of them.

Application sounds are usually embedded in each application.  Same for an
app's icons.  They may or may not be configurable, and may or may not
accept different formats.  It depends on the app.

Bookmarks, such as for web browsers, are in a file that depends on the
browser.  It might be a plist file, or it might not.  It depends on the app.

All the above can change over time.  Apps, system utilities, and the OS
don't usually support direct manipulation of their prefs plist files
(unless they're documented as doing so), so if you choose to read or write
prefs files directly, you're on your own.


Some preferences are programmatically mutable by telling the Finder or
System Events to set them to some value.  Use Open Dictionary... in Script
Editor.app to find out such things.

You can also drive System Preferences itself by scripting it.  Open its
scripting dictionary in Script Editor.app.


Address Book has an API for retrieving or storing data.  Search ADC for
keywords address book api:
  <http://developer.apple.com/search/search.html>

AFAIK, there isn't a Java API for address book, though there is sample code
that begins to do so using JNI.
  <http://developer.apple.com/samplecode/MyFirstJNIProject/>

  -- GG


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.