---
title: "init(properties:)"
framework: Scripting Bridge
role: symbol
role_heading: Initializer
platforms: [Mac Catalyst 13.0+, macOS 10.5+]
path: "scriptingbridge/sbobject/init(properties:)"
---

# init(properties:)

Returns an instance of an SBObject subclass initialized with the specified properties.

## Declaration

```swift
init(properties: [AnyHashable : Any])
```

## Parameters

- `properties`: A dictionary with keys specifying the names of properties (that is, attributes or to-one relationships) and the values for those properties.

## Return Value

Return Value An SBObject object or nil if the object could not be initialized.

## Discussion

Discussion Scripting Bridge does not actually create an object in the target application until you add the object returned from this method to an element array (SBElementArray).

## See Also

### Initializing a Scripting Bridge Object

- [init()](scriptingbridge/sbobject/init().md)
- [init(data:)](scriptingbridge/sbobject/init(data:).md)
- [init(elementCode:properties:data:)](scriptingbridge/sbobject/init(elementcode:properties:data:).md)
