---
title: appleEvent
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/nsscriptcommand/appleevent
---

# appleEvent

If the receiver was constructed by Cocoa scripting’s built-in Apple event handling, returns the Apple event descriptor from which it was constructed.

## Declaration

```swift
@NSCopying var appleEvent: NSAppleEventDescriptor? { get }
```

## Discussion

Discussion The effects of mutating or retaining this descriptor are undefined, although it may be copied.
