Re: AppleScript to Delete Preferences in Mavericks
Re: AppleScript to Delete Preferences in Mavericks
- Subject: Re: AppleScript to Delete Preferences in Mavericks
- From: Bill Cheeseman <email@hidden>
- Date: Mon, 11 Nov 2013 06:16:21 -0500
On Nov 10, 2013, at 1:04 PM, Bill Cheeseman < email@hidden> wrote: Many of us have discovered that application preferences are often cached in Mavericks in such a way that deleting the preferences file itself does not immediately reset the application's preferences. In fact, Apple engineers have now told us that we really were never supposed to just delete preferences files.
As a developer, I often need to completely clear application preferences to test my applications. So of course I wrote an AppleScript to do the job for me in Mavericks. Here it is:
Thanks to John Baltutis for pointing out that my script only works for non-sandboxed applications. I changed it privately so that it does delete a sandboxed application's preferences files. However, doing that destroys the sandboxed application's ability to create new preferences files, and I don't know how to fix that. So, treat my script as intended only for non-sandboxed applications.
As I understand recent online comments by insiders about this sort of thing, it is still the case -- and always has been -- that we are not supposed to delete preferences files at all, period. But we have all been doing this forever, because there is a need for it. I understand that Apple might be working on a more official solution. Until that happens, use my script on non-sandboxed applications at your own risk. |
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden