---
title: scriptErrorOffendingObjectDescriptor
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/nsscriptcommand/scripterroroffendingobjectdescriptor
---

# scriptErrorOffendingObjectDescriptor

Sets a descriptor for an object that will be put in the reply Apple event if the sender requested a reply, execution of the receiver completes, and an error number was set.

## Declaration

```swift
var scriptErrorOffendingObjectDescriptor: NSAppleEventDescriptor? { get set }
```

## Parameters

- `errorOffendingObjectDescriptor`: A descriptor that specifies an object that was responsible for an error.

## See Also

### Handling script execution errors

- [scriptErrorExpectedTypeDescriptor](foundation/nsscriptcommand/scripterrorexpectedtypedescriptor.md)
- [scriptErrorNumber](foundation/nsscriptcommand/scripterrornumber.md)
- [scriptErrorString](foundation/nsscriptcommand/scripterrorstring.md)
