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: Editing the com.apple.internetconfig.plist file via CLI



Title: Re: Editing the com.apple.internetconfig.plist file via CLI
OK, here’s what I have so far:
defaults write com.apple.internetconfig '{ "Version 1" = {ic-added = {DownloadFolder = {ic-data = "" }; }; }; }';

That give me a file with just the following;

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>Version 1</key>
    <dict>
        <key>ic-added</key>
        <dict>
            <key>DownloadFolder</key>
            <dict>
                <key>ic-data</key>
                <string></string>
            </dict>
        </dict>
    </dict>
</dict>
</plist>


What it does is overwrite the entire com.apple.internetconfig.plist file, which is what I don’t want to happen.  So now my question is, how can I rewrite the above line so it just removed the data key from the plist instead of overwriting the whole file?

On 3/31/05 4:09 PM, "Brett Decarion" <email@hidden> wrote:

Correction: the line should read

defaults write com.apple.internetconfig "Version 2.5.4" =  { "ic-added" = { DownloadFolder = {"ic-data" = ""; }; }; }; };

On 3/31/05 4:06 PM, "Brett Decarion" <email@hidden> wrote:

--snip--
 working.  I've been trying the following just from command line:
defaults write com.apple.internetconfig "Version 2.5.3" =  { "ic-added" = { DownloadFolder = {"ic-data" = ""; }; }; }; };
--snip--


--
Brett DeCarion
Office of Information Technology
SunGard Collegis/Delta College
1961 Delta Rd.
University Center, MI 48710
(989)686-9536


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

This email sent to email@hidden


--
Brett DeCarion
Office of Information Technology
SunGard Collegis/Delta College
1961 Delta Rd.
University Center, MI 48710
(989)686-9536
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Client-management mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/client-management/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.