Method

# GetIndexedObjectDescriptor

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

## Description

Returns an `AppleEventObjectSpecifier</api/macos/appleeventobjectspecifier>` that is within another `AppleEventObjectSpecifier</api/macos/appleeventobjectspecifier>`. The `AppleEventObjectSpecifier</api/macos/appleeventobjectspecifier>` is found by class and index.

## Usage

``` xojo
result = GetIndexedObjectDescriptor(DesiredClass, ObjectSpecifier, index)
```

| Part            | Type                                                              | Description                                                                            |
|-----------------|-------------------------------------------------------------------|----------------------------------------------------------------------------------------|
| result          | `AppleEventObjectSpecifier</api/macos/appleeventobjectspecifier>` | The object that was found.                                                             |
| DesiredClass    | `String</api/data_types/string>`                                  | Indicates the class of `AppleEvent</api/macos/appleevent>` object you are looking for. |
| ObjectSpecifier | `AppleEventObjectSpecifier</api/macos/appleeventobjectspecifier>` | The source object. Pass `Nil</api/language/nil>` to search at the application level.   |
| Index           | `Integer</api/data_types/integer>`                                | The number of the object you want (starting at 1).                                     |

## Compatibility

|                       |         |
|-----------------------|---------|
| **Project Types**     | Desktop |
| **Operating Systems** | macOS   |

<div class="seealso">

`AppleEvent</api/macos/appleevent>` class; `GetNamedObjectDescriptor</api/macos/getnamedobjectdescriptor>`, `GetOrdinalObjectDescriptor</api/macos/getordinalobjectdescriptor>`, `GetPropertyObjectDescriptor</api/macos/getpropertyobjectdescriptor>`, `GetRangeObjectDescriptor</api/macos/getrangeobjectdescriptor>`, `GetStringComparisonObjectDescriptor</api/macos/getstringcomparisonobjectdescriptor>`, `GetTestObjectDescriptor</api/macos/gettestobjectdescriptor>` functions.

</div>
