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
display notification
is a part of StandardAdditions and as such it does not belong within atell
block ofprocess "Notification Center"
orapplication "System Events"
and should be placed after theend tell
of thetell application "System Events"
block.