def __init__(self, slideshow_number=None): """ Sets up Keynote so that it uses whichever slideshow throughout """ AppleScriptWrapper.__init__(self, "Keynote") if not slideshow_number: slideshow_number = 1 self._edit = [] """
def extention_of_current_document(self): name = AppleScriptWrapper.name_of_current_document(self) if name: s = re.search(r'.*\.\w{3,4} \((\w{3,4}).*?\)', name) if s: return s.group(1) else: return self.default_extension
def name_of_current_document(self): name = AppleScriptWrapper.name_of_current_document(self) if name: s = re.search(r'(.*)\.\w{3,} \(.*?\)', name) if s: return s.group(1) else: return name
def __init__(self): AppleScriptWrapper.__init__(self, "QuickTime Player")
def __init__(self): s = "hi" AppleScriptWrapper.__init__(self, "Microsoft Word")
def __init__(self): AppleScriptWrapper.__init__(self, 'TextEdit')
def __init__(self): AppleScriptWrapper.__init__(self, "iTunes")
def __init__(self): AppleScriptWrapper.__init__(self, "System Preferences")
def __init__(self): AppleScriptWrapper.__init__(self, "Preview")
def __init__(self): AppleScriptWrapper.__init__(self, "Photo Booth")
def __init__(self): AppleScriptWrapper.__init__(self, "ProVoc")
def __init__(self): AppleScriptWrapper.__init__(self, "Pages") self._selection = None
def __init__(self): AppleScriptWrapper.__init__(self, "Firefox")
def __init__(self): AppleScriptWrapper.__init__(self, "Finder")
def __init__(self): AppleScriptWrapper.__init__(self, 'Safari')