]>
git.saurik.com Git - apple/security.git/blob - OSX/shared_regressions/append_log_to_plist.py
6 description
= sys
.argv
[2]
10 my_array
= Foundation
.NSMutableArray
.arrayWithContentsOfFile_(plist
)
13 my_array
= Foundation
.NSMutableArray
.array()
16 my_data
= Foundation
.NSData
.dataWithContentsOfFile_(keyfile
)
18 my_dict
= Foundation
.NSMutableDictionary
.dictionary()
19 my_dict
['description'] = description
20 my_dict
['operator'] = operator
21 my_dict
['key'] = my_data
23 my_array
.append(my_dict
)
27 success
= my_array
.writeToFile_atomically_(plist
, 1)
29 print "plist failed to write!"