---
title: "property(withCode:)"
framework: Scripting Bridge
role: symbol
role_heading: Instance Method
platforms: [Mac Catalyst 13.0+, macOS 10.5+]
path: "scriptingbridge/sbobject/property(withcode:)"
---

# property(withCode:)

Returns an object representing the specified property of the receiver.

## Declaration

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

## Parameters

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

## Return Value

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

## Discussion

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

## See Also

### Getting Properties and Elements

- [property(with:code:)](scriptingbridge/sbobject/property(with:code:).md)
- [elementArray(withCode:)](scriptingbridge/sbobject/elementarray(withcode:).md)
