AppleScript to read all notifications in the Notification Center OSX 10.10 Yosemite It seems like the following AppleScript is no longer working in the latest version of the OS X 10.10 (Yosemite):
on run
    tell application &quot;System Events&quot;
        tell process &quot;Notification Center&quot;
            set theseWindows to every window
            display notification (count of theseWindows)
        end tell
    end tell
end run

This were supposed to get all notifications listed in the Notification Center. However, the count attribute always returns 0.
Does anyone know how to retrieve all notifications in the Notification Center different than the script above?
I have not found a way for AppleScript to do this, but shell scripting has been effective for some people to get at the full database or log of past notifications.

Does the OS X log notifications from the Notification Center?


The format is an sqlite database, and it can be found inside this folder:
~/Library/Application Support/NotificationCenter


Assuming AppleScript is more important, you can call arbitrary shell scripts if needed from one, but other languages might be easier for database interactions / reporting.