<!--
{
  "availability" : [
    "macCatalyst: 13.0.0 -",
    "macOS: 10.5.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Scripting Bridge",
  "identifier" : "/documentation/ScriptingBridge/SBObject/property(withCode:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Scripting Bridge",
      "ScriptingBridge"
    ],
    "preciseIdentifier" : "c:objc(cs)SBObject(im)propertyWithCode:"
  },
  "title" : "property(withCode:)"
}
-->

# property(withCode:)

Returns an object representing the specified property of the receiver.

```
func property(withCode code: AEKeyword) -> SBObject
```

## Parameters

`code`

A four-character code that uniquely identifies a property of the
receiver.

## Return Value

An object representing the receiver’s property as identified by
`code`.

## Discussion

`SBObject` subclasses use this method to implement application-specific
property accessor methods. You should not need to call this method directly.

---

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)