Jump to content

Applescript to trigger click on shown notification?

Recommended Posts

Yes, just found it, I was using osascript instead of applescript in the search and couldn't find anything.

tell application "System Events" to tell process "Notification Center"
            click last item of windows
end tell

This works, Thanks!

Edited by Maddog
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...