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

# init(properties:)

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

```
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

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

## 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`](/documentation/ScriptingBridge/SBElementArray)).

---

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)