---
title: scriptErrorExpectedTypeDescriptor
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/nsscriptcommand/scripterrorexpectedtypedescriptor
---

# scriptErrorExpectedTypeDescriptor

Sets a descriptor for the expected type 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 scriptErrorExpectedTypeDescriptor: NSAppleEventDescriptor? { get set }
```

## Parameters

- `errorExpectedTypeDescriptor`: A descriptor that specifies a type.

## See Also

### Handling script execution errors

- [scriptErrorNumber](foundation/nsscriptcommand/scripterrornumber.md)
- [scriptErrorOffendingObjectDescriptor](foundation/nsscriptcommand/scripterroroffendingobjectdescriptor.md)
- [scriptErrorString](foundation/nsscriptcommand/scripterrorstring.md)
