Jump to content

sashaski

Member
  • Posts

    3
  • Joined

  • Last visited

Reputation Activity

  1. Like
    sashaski reacted to liatmgat in Toggle Do Not Disturb (w/ Yosemite Support)   
    Thanks all! I did a ghetto workaround to make this work with Bartender - I just had the script quit Bartender at the beginning and then start it again at the end. It actually is surprisingly fast, so it seems like it will work for me until someone smart comes up with a real fix.
     
    (I adapted tabacitu's version because I thought it was faster.) Thank you paulw - I leave yours running too so I can tell from the Alfred results whether DND is off or on. But then I run tabacitu's version to toggle it.
    try tell application "Bartender 2" quit end tell end try tell application "System Events" set toggled to false option key down delay 0.1 try click menu bar item "Notification Center" of menu bar 2 of application process "SystemUIServer" set toggled to true end try if not toggled then try click menu bar item 1 of menu bar 2 of application process "SystemUIServer" end try end if option key up end tell tell application "Bartender 2" activate end tell
×
×
  • Create New...