---
title: "webScriptName(forKey:)"
framework: objectivec
role: symbol
role_heading: Type Method
path: "objectivec/nsobject-swift.class/webscriptname(forkey:)"
---

# webScriptName(forKey:)

Returns the scripting environment name for an attribute specified by a key.

## Declaration

```swift
class func webScriptName(forKey name: UnsafePointer<CChar>!) -> String!
```

## Parameters

- `name`: The name of the attribute.

## Return Value

Return Value The name used to represent the attribute in the scripting environment.

## See Also

### Getting attributes

- [webScriptName(for:)](objectivec/nsobject-swift.class/webscriptname(for:).md)
- [isSelectorExcluded(fromWebScript:)](objectivec/nsobject-swift.class/isselectorexcluded(fromwebscript:).md)
- [isKeyExcluded(fromWebScript:)](objectivec/nsobject-swift.class/iskeyexcluded(fromwebscript:).md)
