<!--
{
  "availability" : [
    "macOS: 10.5.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/NSScriptObjectSpecifier/descriptor",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "c:objc(cs)NSScriptObjectSpecifier(py)descriptor"
  },
  "title" : "descriptor"
}
-->

# descriptor

Returns an Apple event descriptor that represents the receiver.

```
@NSCopying var descriptor: NSAppleEventDescriptor? { get }
```

## Return Value

An Apple event descriptor of type `typeObjectSpecifier`.

## Discussion

If the receiver was created with [`init(descriptor:)`](/documentation/Foundation/NSScriptObjectSpecifier/init(descriptor:)), the passed-in descriptor is returned. Otherwise, a new descriptor is created and returned, autoreleased.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)