<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSText/unscript(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSText(im)unscript:"
  },
  "title" : "unscript(_:)"
}
-->

# unscript(_:)

This action method removes any superscripting or subscripting from selected text (or all text if the receiver is a plain text object).

```
func unscript(_ sender: Any?)
```

## See Also

[`lowerBaseline(_:)`](/documentation/AppKit/NSTextView/lowerBaseline(_:))

Lowers the baseline offset of selected text by 1 point, or of all text if the receiver is a plain text view.

[`raiseBaseline(_:)`](/documentation/AppKit/NSTextView/raiseBaseline(_:))

Raises the baseline offset of selected text by 1 point, or of all text if the receiver is a plain text view.



---

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)