<s> from subprocess import call <EOL> class MacBrowserRefresh : <EOL> def __init__ ( self , activate_browser ) : <EOL> if activate_browser : <EOL> self . activate = '<STR_LIT>' <EOL> else : <EOL> self . activate = '<STR_LIT>' <EOL> self . _chrome_applescript = """<STR_LIT>""" <EOL> def _chrome ( self , app_name , browser_name ) : <EOL> command = self . _chrome_applescript . format ( <EOL> name = app_name , activate = self . activate ) <EOL> self . _call_applescript ( command ) <EOL> def chrome ( self ) : <EOL> self . _chrome ( "<STR_LIT>" , "<STR_LIT>" ) <EOL> def canary ( self ) : <EOL> self . _chrome ( "<STR_LIT>" , "<STR_LIT>" ) <EOL> def yandex ( self ) : <EOL> self . _chrome ( "<STR_LIT>" , "<STR_LIT>" ) <EOL> def safari ( self ) : <EOL> command = """<STR_LIT>""" . format ( activate = self . activate ) <EOL> self . _call_applescript ( command ) <EOL> def webkit ( self ) : <EOL> command = """<STR_LIT>""" . format ( activate = self . activate ) <EOL> self . _call_applescript ( command ) <EOL> def firefox ( self ) : <EOL> command = """<STR_LIT>""" <EOL> self . _call_applescript ( command ) <EOL> def firefox_dev ( self ) : <EOL> command = """<STR_LIT>""" <EOL> self . _call_applescript ( command ) <EOL> def opera ( self ) : <EOL> command = """<STR_LIT>""" <EOL> self . _call_applescript ( command ) <EOL> def _call_applescript ( self , command ) : <EOL> call ( [ '<STR_LIT>' , '<STR_LIT>' , command ] ) </s>
