Skip to content

Instantly share code, notes, and snippets.

View queglay's full-sized avatar
🎯
Focusing

Andrew Graham queglay

🎯
Focusing
View GitHub Profile
@florianeckerstorfer
florianeckerstorfer / vlc-notification-center.scpt
Last active September 17, 2017 16:36
Automatically disable OS X Notification Center when VLC is playing a video in fullscreen mode. The script also enabled NC again when the video is paused, full screen mode is left or VLC is quit.
-- You need to open AppleScript Editor, paste the code and adapt the pListFile variable
-- Then export the script (File > Export) and save it as an application (activate "Stay open after run handler")
global plistFile
on run
-- The plist file will be different on your system. You can find out the filename by running the following line in a terminal window
-- $ ls ~/Library/Preferences/ByHost/com.apple.notificationcenterui.*.plist
set plistFile to "~/Library/Preferences/ByHost/com.apple.notificationcenterui.C9C4D4C4-E6DF-59FC-9BF4-25514282C806.plist"
checkStatus()