recentpopularlog in

kme : plist   8

swift - How to force reload preference plist for an app in OS X? - Stack Overflow
The reason is, from Mac OS Mavericks, apple started to cache plist files, which results in replacing a plist file manually has no effect until the cache is reloaded automatically. If you open the application which uses this plist file to early, it overwrites your copied file with the old/cached one.

To reload the preference file manually, use
<code class="language-bash">defaults read <filename>.plist</code>

to read the new plist values.

Source: nethack

Now, I just use a sh script to call the defaults after executing my program.
macos  mojave  10.14  preferences  plist  solution 
september 2019 by kme
Converting Binary Plists - ForensicsWiki
<code class="language-bash">plutil -convert xml1 file.plist</code>
plist  propertylist  forensics  xml  macos  mac  solution 
september 2019 by kme
Unixjunkie Blog: Use defaults to Manipulate Any Plist
This helped a lot when I was trying to figure out how to make all the Fluid web apps I'd created stop assigning themselves to PDFs and all the image formats.

See for more information on which key in the plist to change to fix that.
mac  osx  defaults  sysadmin  plist  commandline  fuckina  solution 
january 2014 by kme
Information Property List Key Reference: Core Foundation Keys

This helped me blow away the PDF associations for every Fluid webapp I've ever created. See also: (for a way to automate using 'defaults' on the command line to modify an arbitrary plist file)
solution  mac  osx  openwith  contextmenu  plist  propertylist  fileassociation 
january 2014 by kme

Copy this bookmark:

to read