Sample Header Ad - 728x90

Run AppleScript when notification is receieved

0 votes
1 answer
776 views
I have a script that runs perfectly but I want it to initialise when I receive a notification with the title "Bricks + Agent". Even better if I can actually put the subtitle text into the dialog box as well
set theDialogText to "Have you uploaded the inspection report to Bricks + Agent?"
display dialog theDialogText buttons {"No", "Yes"} default button "No" cancel button "Yes"
--> Result: {{button returned:"No"}
open location "https://services.bricksandagent.com/Dashboard/SpDashboard#/sp "
Asked by Emily Middleton (1 rep)
Nov 13, 2022, 03:59 AM
Last activity: Jul 11, 2025, 10:07 PM