---
title: "atIndex(_:)"
framework: foundation
role: symbol
role_heading: Instance Method
path: "foundation/nsappleeventdescriptor/atindex(_:)"
---

# atIndex(_:)

Returns the descriptor at the specified (one-based) position in the receiving descriptor list.

## Declaration

```swift
func atIndex(_ index: Int) -> NSAppleEventDescriptor?
```

## Parameters

- `index`: The one-based descriptor list position of the descriptor to return.

## Return Value

Return Value The descriptor from the specified position (one-based) in the descriptor list, or nil if the specified descriptor cannot be obtained.

## See Also

### Working With List Descriptors

- [insert(_:at:)](foundation/nsappleeventdescriptor/insert(_:at:).md)
- [remove(at:)](foundation/nsappleeventdescriptor/remove(at:).md)
