Where can I find documentation for notification center method and properties to use it in applescript? I can't find anything in script editor's dictionary neither on web.
This is example code to work with notification center:
on run
tell application "System Events"
tell process "Notification Center"
set theseWindows to every window
display notification (count of theseWindows)
end tell
end tell
end run
Best Answer
Script Editor app has a searchable library. Open that under the window menu and then select the Standard Additions bundle. If you search for the term notification, you'll see it's defined under User Interaction:
But Notifications Center doesn't have any windows. Are you trying to count all windows for all applications?
To be clear - here's the notification part setting aside what a window count might be: