---
title: "appleEventCode(forSuite:)"
framework: foundation
role: symbol
role_heading: Instance Method
path: "foundation/nsscriptsuiteregistry/appleeventcode(forsuite:)"
---

# appleEventCode(forSuite:)

Returns the Apple event code associated with the suite named suiteName, such as ‘core’ for the Core suite.

## Declaration

```swift
func appleEventCode(forSuite suiteName: String) -> FourCharCode
```

## See Also

### Related Documentation

- [suite(forAppleEventCode:)](foundation/nsscriptsuiteregistry/suite(forappleeventcode:).md)

### Getting Other Suite Information

- [aeteResource(_:)](foundation/nsscriptsuiteregistry/aeteresource(_:).md)
- [bundle(forSuite:)](foundation/nsscriptsuiteregistry/bundle(forsuite:).md)
