<!--
{
  "availability" : [
    "macOS: 10.4.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "ObjectiveC",
  "identifier" : "/documentation/ObjectiveC/NSObject-swift.class/webScriptName(forKey:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "Objective-C Runtime",
      "ObjectiveC"
    ],
    "preciseIdentifier" : "c:objc(cs)NSObject(cm)webScriptNameForKey:"
  },
  "title" : "webScriptName(forKey:)"
}
-->

# webScriptName(forKey:)

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

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

## Parameters

`name`

The name of the attribute.

## Return Value

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

## Discussion

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)