def dragLeft(t): dragDrop(t, t.getCenter().left(200)) def dragRight(t): dragDrop(t, t.getCenter().right(200)) def dragToMute(t): dragDrop(t, t.nearby().left().find()) switchApp("System Preferences.app") click(
) click(
) thumbs = findAll(
) for t in list(thumbs)[:2]: # only take the first two dragLeft(t) # off #dragRight(t) # on #dragToMute(t)