title: Action buttons applescript functions
body: <p>I am trying to make an AppleScript which creates a notification when I receive a specific email. </p>
  
  <p>Rules are set up, and I have a script which launches an app with the following code:</p>
  
  <pre><code>display notification "A newBuild is now available!" with title "New Build"
  tell application "Safari"
      activate
      tell window 1
          set current tab to (make new tab with properties URL:"https://latestSuccessful")
      end tell
      tell application "System Events"
          set visible of process "Safari" to true
      end tell
  end tell
  </code></pre>
  
  <p>This launches safari and take to the the web page as soon as the notification is displayed.</p>
  
  <p>Ideally I would display the notification as an Alert, with an action on the 'Show' button which then takes me to the web page. The 'Close button' naturally closes the alert. </p>
  
  <p>Is this possible? Thanks in advance for any pointers.</p>