---
title: SBApplicationDelegate
framework: Scripting Bridge
role: symbol
role_heading: Protocol
platforms: [Mac Catalyst 13.0+, macOS 10.5+]
path: scriptingbridge/sbapplicationdelegate
---

# SBApplicationDelegate

This informal protocol defines a delegation method for handling Apple event errors that are sent from a target application to an SBApplication object.

## Declaration

```swift
protocol SBApplicationDelegate
```

## Overview

Overview You must set a delegate for the SBApplication object using the delegate method. If you do not set a delegate and have the delegate handle the error in some way, SBApplication raises an exception.

## Topics

### Handling Errors

- [eventDidFail(_:withError:)](scriptingbridge/sbapplicationdelegate/eventdidfail(_:witherror:).md)
