Reveal Analysis iOS interface, need to get app Softwareversionbundleid upload to iphone,
and IOS8 itunesmetadata.plist to downloads inside find very laborious, so wrote a auxiliary script, all read out at once
The main use of Python, the implementation of Traverse folder to get a list of files, and then read the field, output into a file Libreveal.plist format
Python reads the plist file from the library https://github.com/wooster/biplist/
1Path ='/users/documents/work/revealplist/'2 Importos,string3Librevealplist =" "4 {5 Filter = {6 @ReplaceTag7 }8 }" "9 fromBiplistImport*Ten fromDatetimeImportdatetime OneFilterliststr ="' A defGCI (path): - GlobalFilterliststr -Parents =os.listdir (path) the forParentinchParents: -Child =Os.path.join (path,parent) - ifOs.path.isdir (Child): - GCI (Child) + Else: - ifparent=="itunesmetadata.plist": + #print (child) Ametadata = readplist (child). Get ("metadata") at ifMetadata.get ("Kind") =="Software": -Bundleid = Metadata.get ("Softwareversionbundleid") - #Print Bundleid - ifFilterliststr! ="': -Filterliststr + ='\n\t\t' -Filterliststr + ='Bundles = ("'+bundleid+'");' in GCI (path) -Librevealplist = Librevealplist.replace ('@ReplaceTag', Filterliststr) to PrintLibrevealplist
Reveal Analysis iOS interface, plist file read