plistlib.writePlistToResource()

plistlib.writePlistToResource(rootObject, path, restype='plst', resid=0)[source]

Write ‘rootObject’ as a plst resource to the resource fork of path.