---
title: directParameter
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/nsscriptcommand/directparameter
---

# directParameter

Sets the object that corresponds to the direct parameter of the Apple event from which the receiver derives.

## Declaration

```swift
var directParameter: Any? { get set }
```

## Parameters

- `directParameter`: An object to be set as the direct parameter.

## Discussion

Discussion You don’t normally override this method.
