site_archiver@lists.apple.com Delivered-To: installer-dev@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:content-type:mime-version :subject:from:in-reply-to:date:content-transfer-encoding:message-id :references:to:x-mailer; bh=CkX+0NZMjiavRj8zxw7FM4qPSzn6B6Vj7soljd7bY0I=; b=k2fDxVrcZldskwagkLlohw0SuhsBcetLRJRVSnsw/X+jnWglaXgxlSaRnZI7fjNLrH NJI0emhEeSnJ0oLF8/2DELM+NzRGjm+Ya1TcWss2t9AvaV1SnyKOeYaVZcIGbWjeqvY1 fyCbdoLWvGdTEDvvraMyzUV5jFrRu9t4BadnM= Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; b=lok1fdWVAyUKxNFYBrT00RjdmnV2eFr7DoVzDhfc9c7Ln7Yk3eN39M249B9UX6o9PV oewZYZn8KE4aVoWdXbxnFkOM0PWBTcZJ/xOjDYmLqd6VZ7u3xymj4EymsAzG9/MJky5e 1Mk9FW6WtapwT31oPOAd14XwmGZUIoFrPYwm0= that deletes the enitire plist file..... im stuck On 19/10/2009, at 8:00 AM, Nick Peelman wrote: defaults delete ~/Library/Preferences/com.apple.Safari deleteKey works as expected for me...you sure there isn't something else wrong there? I've used similar deletes elsewhere, syntactically identical to that, without issue. -nick On Sun, Oct 18, 2009 at 4:54 PM, Russell Gray <sweetpproductions@gmail.com> wrote: how do I delete a key in a plist file, in a postinstall script? I have tried: Code: #!/bin/sh the script deletes the entire plist file though, not the key? I tried this: Code: #!/bin/sh /usr/bin/defaults delete myKeyToDelete Code: #!/bin/sh MY_UNUSED_KEY="com.apple.Safari myKeyToDelete" if [ -d "MY_UNUSED_KEY" ]; then echo "Removing unused preferences" /usr/bin/defaults delete "MY_UNUSED_KEY" fi which doesnt generate an error, but also doesnt delete the key? This email sent to nick@peelman.us -- Nick Peelman peelman@gmail.com _______________________________________________ Do not post admin requests to the list. They will be ignored. Installer-dev mailing list (Installer-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/installer-dev/site_archiver%40lists.a... defaults delete $HOME/Library/Preferences/com.apple.Safari myKeyToDelete which generates an error in the installer, and doesn't delete the key. and this one: this shouldnt be that difficult.... _______________________________________________ Do not post admin requests to the list. They will be ignored. Installer-dev mailing list (Installer-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/installer-dev/nick %40peelman.us This email sent to site_archiver@lists.apple.com