def parseapp(path, style='appscript'): sdef = copyscriptingdefinition(path) if sdef is None: raise RuntimeError, "Can't get sdef (requires OS 10.4+)." return parsexml(sdef, path, style)
def parseapp(path, style='appscript'): sdef = copyscriptingdefinition(path) return parsexml(sdef, path, style)