Editing .plists with defaults


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Editing .plists with defaults
# 1  
Old 06-30-2014
Editing .plists with defaults

I've done simple edits with defaults, but they usually are the parent parameter. For example changing the value of "DateCellWidthCache" =.

What if I want to change a parameter in one of the sub categories such as "MMM d, y' '",? How do I type that out at the end of my defaults write command?:

Code:
defaults write com.apple.program xxx

Code:
DateCellWidthCache =     {
        DateCellCacheVersion = "B Version";
        DateCellFormats =         (
            "MMMM d, y' '",
            "MMM d, y' '",
            "M/d/yy' '",
            "MMMM d, y",
            "MMM d, y",
            "M/d/yy",
            "Yesterday ",
            "Today ",
            Yesterday,
            Today
        );

I am not trying to edit this .plist, this is just for example purpose.
# 2  
Old 12-06-2014
For change FontSize in DateCellWidthCache i'm using :

defaults write com.apple.mail DateCellWidthCache -dict-add FontSize 11

hope it will help you.

Last edited by Antony_Nice_Fr; 12-06-2014 at 05:44 PM..
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Convert vi editing to text editing

Dear Guru's I'm using Putty and want to edit a file. I know we generally use vi editor to do it. As I'm not good in using vi editor, I want to convert the vi into something like text pad. Is there any option in Putty to do the same ? Thanks for your response. Srini (6 Replies)
Discussion started by: thummi9090
6 Replies

2. Shell Programming and Scripting

Defaults read/write question

OSX 10.9 How does "defaults" know where to look for .plists? To expand: defaults read com.apple.finder is located in ~/Library/Preferences but, defaults read com.apple.mail is located in ~/Library/Containers/com.apple.mail/Data/Library/Preferences/com.apple.mail.plist So my question... (0 Replies)
Discussion started by: sudo
0 Replies

3. Solaris

Impact on existing users when changing passwd defaults

Hi Administering Solaris Systems - Solaris 10 mostly. If I change the /etc/default/passwd settings - E.G. to increase minimum passwd length, then what happens to existing users with passwords shorter than this. presumably they are not affected until next time they want to change password. ... (4 Replies)
Discussion started by: Mudshark
4 Replies

4. OS X (Apple)

Lingon Created plists for the User Template

Question for the Lingon Expert: Once I've completed creating a plist under Lingon, can the plist be directly applied to the user template in order for the changes to force the desired results, no matter who logs into the machine? (Side note: I understand Casper 7.2 has provisions for uploading... (1 Reply)
Discussion started by: unimachead
1 Replies

5. Solaris

Defaults number of users and Groups

Hi All, I would like know how many of default number of users and groups are there in solaris-10... Regards Tirupathi Raju (2 Replies)
Discussion started by: tirupathiraju_t
2 Replies

6. UNIX for Advanced & Expert Users

assigning variables to their defaults

Hi, Is there any way to assign defaults values to the shell variables without reassigning them ( restarting the session) for example after login the value of ORACLE_HOME=/a/b/c i have changed this value from the console export ORACLE_HOME=/c/d now what if i want the value exported to... (1 Reply)
Discussion started by: clx
1 Replies

7. UNIX for Dummies Questions & Answers

Using defaults read to get value from plist

Hi there, I'm trying to retrieve a value from a plist file, which I have done before with no problems, however this plist file looks a little different.... Normally it's like this; <plist version="1.0"> <dict> key>KeyName</key> <string>blah</string> I want the value of KeyName, so... (1 Reply)
Discussion started by: davewg
1 Replies

8. Shell Programming and Scripting

Using 'defaults read' and storing the output in a variable

Hi all, I'm creating a script which uses 'defaults read' to retrieve details from an Info.plist like this; defaults read "/Path/Contents/Info" CFBundleShortVersionString This works fine in Terminal and returns the expected values. Is it possible to use this command in a script, and... (0 Replies)
Discussion started by: davewg
0 Replies

9. IP Networking

defaults httpd.conf

I have found in the httpd.conf where it it states the default parse pages like index.htm, index.html, index.php and etc....However, my computer box does not seem to want to automatically load the index.php files. Anyone have any ideas? (5 Replies)
Discussion started by: macdonto
5 Replies
Login or Register to Ask a Question