---
title: "class(forScriptingClass:)"
framework: Scripting Bridge
role: symbol
role_heading: Instance Method
platforms: [Mac Catalyst 13.0+, macOS 10.5+]
path: "scriptingbridge/sbapplication/class(forscriptingclass:)"
---

# class(forScriptingClass:)

Returns a class object that represents a particular class in the target application.

## Declaration

```swift
func `class`(forScriptingClass className: String) -> AnyClass?
```

## Parameters

- `className`: The name of the scripting class, as it appears in the scripting interface. For example, “document”.

## Return Value

Return Value A Class object representing the scripting class.

## Discussion

Discussion You invoke this method on an instance of a scriptable application. Once you have the class object, you may allocate an instance of the class and appropriately the raw instance. Or you may use it in a call to isKind(of:) to determine the class type of an object.
