Lines Matching defs:Res
121 from Carbon import Res
123 resNum = Res.FSOpenResourceFile(fsRef, FSGetResourceForkName(), fsRdPerm)
124 Res.UseResFile(resNum)
125 plistData = Res.Get1Resource(restype, resid).data
126 Res.CloseResFile(resNum)
136 from Carbon import Res
139 resNum = Res.FSOpenResourceFile(fsRef, FSGetResourceForkName(), fsRdWrPerm)
140 Res.UseResFile(resNum)
142 Res.Get1Resource(restype, resid).RemoveResource()
143 except Res.Error:
145 res = Res.Resource(plistData)
146 res.AddResource(restype, resid, '')
147 res.WriteResource()
148 Res.CloseResFile(resNum)