Next Page > Hide TOC

NSAppleScript Additions Reference

Inherits from
Framework
/System/Library/Frameworks/AppKit.framework
Companion guide
Declared in
NSAppleScriptExtensions.h

Overview

The Application Kit adds a method to the Foundation Framework’s NSAppleScript class to handle rich text source. This method becomes part of the NSAppleScript class only for those applications that use the Application Kit.

For more information, see NSAppleScript in the Foundation Framework API Reference.

Tasks

Obtaining Source

Instance Methods

richTextSource

Returns the syntax-highlighted source code of the receiver if the receiver has been compiled and its source code is available.

- (NSAttributedString *)richTextSource

Discussion

Returns nil otherwise. It is possible for an instance of NSAppleScript that has been instantiated with initWithContentsOfURL:error: to be a script for which the source code is not available, but is nonetheless executable.

Availability
Declared In
NSAppleScriptExtensions.h

Next Page > Hide TOC


© 2006 Apple Computer, Inc. All Rights Reserved. (Last updated: 2006-05-23)


Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.