org.rococoa.cocoa.foundation
Class NSAppleScript

java.lang.Object
  extended by org.rococoa.cocoa.foundation.NSObject
      extended by org.rococoa.cocoa.foundation.NSAppleScript
All Implemented Interfaces:
NSCopying, NSObject, ObjCObject

public abstract class NSAppleScript
extends NSObject
implements ObjCObject, NSCopying

This file was autogenerated by JNAerator,
a tool written by Olivier Chafik that uses a few opensource projects..
For help, please visit NativeLibs4Java, Rococoa, or JNA.


Nested Class Summary
static class NSAppleScript._class_
           
 
Nested classes/interfaces inherited from interface org.rococoa.cocoa.foundation.protocols.NSCopying
NSCopying._static_
 
Nested classes/interfaces inherited from interface org.rococoa.cocoa.foundation.protocols.NSObject
NSObject._static_
 
Constructor Summary
NSAppleScript()
           
 
Method Summary
static NSAppleScript alloc()
           
 NSExtensions as_NSAppleScript_NSExtensions()
           
abstract  boolean compileAndReturnError(PointerByReference errorInfo)
          Compile the script, if it is not already compiled.
static NSAppleScript createWithContentsOfURL_error(NSURL url, PointerByReference errorInfo)
          Factory method
static NSAppleScript createWithSource(NSString source)
          Factory method
abstract  NSAppleEventDescriptor executeAndReturnError(PointerByReference errorInfo)
          Execute the script, compiling it first if it is not already compiled.
abstract  NSAppleEventDescriptor executeAppleEvent_error(NSAppleEventDescriptor event, PointerByReference errorInfo)
          Execute an Apple event in the context of the script, compiling the script first if it is not already compiled.
static NSAppleScript._class_ getNSClass()
           
abstract  NSAppleScript initWithContentsOfURL_error(NSURL url, PointerByReference errorInfo)
          Given a URL that locates a script, in either text or compiled form, initialize.
abstract  NSAppleScript initWithSource(NSString source)
          Given a string containing the AppleScript source code of a script, initialize.
abstract  boolean isCompiled()
          Return yes if the script is already compiled, no otherwise.
static NSAppleScript new_()
           
abstract  NSString source()
          Return the source code of the script if it is available, nil otherwise.
 
Methods inherited from class org.rococoa.cocoa.foundation.NSObject
as_NSObject_NSAccessibility, as_NSObject_NSAccessibilityAdditions, as_NSObject_NSApplicationScriptingDelegation, as_NSObject_NSArchiverCallback, as_NSObject_NSClassDescriptionPrimitives, as_NSObject_NSCoderMethods, as_NSObject_NSColorPanelResponderMethod, as_NSObject_NSComparisonMethods, as_NSObject_NSControlSubclassNotifications, as_NSObject_NSCopyLinkMoveHandler, as_NSObject_NSDelayedPerforming, as_NSObject_NSDeprecatedKeyValueCoding, as_NSObject_NSDeprecatedKeyValueObservingCustomization, as_NSObject_NSDeprecatedMethods, as_NSObject_NSDictionaryControllerKeyValuePair, as_NSObject_NSDistributedObjects, as_NSObject_NSDraggingDestination, as_NSObject_NSDraggingSource, as_NSObject_NSDraggingSourceDeprecated, as_NSObject_NSEditor, as_NSObject_NSEditorRegistration, as_NSObject_NSErrorRecoveryAttempting, as_NSObject_NSFileManagerFileOperationAdditions, as_NSObject_NSFontManagerDelegate, as_NSObject_NSFontManagerResponderMethod, as_NSObject_NSFontPanelValidationAdditions, as_NSObject_NSKeyValueBindingCreation, as_NSObject_NSKeyValueCoding, as_NSObject_NSKeyValueObserverNotification, as_NSObject_NSKeyValueObserverRegistration, as_NSObject_NSKeyValueObserving, as_NSObject_NSKeyValueObservingCustomization, as_NSObject_NSMenuValidation, as_NSObject_NSNibAwaking, as_NSObject_NSPasteboardOwner, as_NSObject_NSPlaceholders, as_NSObject_NSScriptClassDescription, as_NSObject_NSScripting, as_NSObject_NSScriptingComparisonMethods, as_NSObject_NSScriptKeyValueCoding, as_NSObject_NSScriptObjectSpecifiers, as_NSObject_NSThreadPerformAdditions, as_NSObject_NSURLClient, as_NSObject_NSURLConnectionDelegate, as_NSObject_NSURLDownloadDelegate, copy, create, dealloc, description, doesNotRecognizeSelector, finalize, forwardingTargetForSelector, forwardInvocation, init, isKindOfClass, isKindOfClass, methodForSelector, methodSignatureForSelector, mutableCopy, release, retain, retainCount
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.rococoa.cocoa.foundation.protocols.NSCopying
copyWithZone
 
Methods inherited from interface org.rococoa.ObjCObject
id
 
Methods inherited from interface org.rococoa.cocoa.foundation.protocols.NSObject
autorelease, class_, conformsToProtocol, hash, isEqual, isMemberOfClass, isProxy, performSelector_withObject_withObject, performSelector_withObject, performSelector, respondsToSelector, self, superclass, zone
 

Constructor Detail

NSAppleScript

public NSAppleScript()
Method Detail

as_NSAppleScript_NSExtensions

public NSExtensions as_NSAppleScript_NSExtensions()

initWithContentsOfURL_error

public abstract NSAppleScript initWithContentsOfURL_error(NSURL url,
                                                          PointerByReference errorInfo)
Given a URL that locates a script, in either text or compiled form, initialize. Return nil and a pointer to an error information dictionary if an error occurs. This is a designated initializer for this class.
Original signature : -(id)initWithContentsOfURL:(NSURL*) error:(NSDictionary**)
native declaration : NSAppleScript.h:30


createWithContentsOfURL_error

public static NSAppleScript createWithContentsOfURL_error(NSURL url,
                                                          PointerByReference errorInfo)
Factory method

See Also:
initWithContentsOfURL_error(org.rococoa.cocoa.foundation.NSURL, com.sun.jna.ptr.PointerByReference)

initWithSource

public abstract NSAppleScript initWithSource(NSString source)
Given a string containing the AppleScript source code of a script, initialize. Return nil if an error occurs. This is also a designated initializer for this class.
Original signature : -(id)initWithSource:(NSString*)
native declaration : NSAppleScript.h:33


createWithSource

public static NSAppleScript createWithSource(NSString source)
Factory method

See Also:
initWithSource(org.rococoa.cocoa.foundation.NSString)

source

public abstract NSString source()
Return the source code of the script if it is available, nil otherwise. It is possible for an NSAppleScript that has been instantiated with -initWithContentsOfURL:error: to be a script for which the source code is not available, but is nonetheless executable.
Original signature : -(NSString*)source
native declaration : NSAppleScript.h:36


isCompiled

public abstract boolean isCompiled()
Return yes if the script is already compiled, no otherwise.
Original signature : -(BOOL)isCompiled
native declaration : NSAppleScript.h:39


compileAndReturnError

public abstract boolean compileAndReturnError(PointerByReference errorInfo)
Compile the script, if it is not already compiled. Return yes for success or if the script was already compiled, no and a pointer to an error information dictionary otherwise.
Original signature : -(BOOL)compileAndReturnError:(NSDictionary**)
native declaration : NSAppleScript.h:42


executeAndReturnError

public abstract NSAppleEventDescriptor executeAndReturnError(PointerByReference errorInfo)
Execute the script, compiling it first if it is not already compiled. Return the result of executing the script, or nil and a pointer to an error information dictionary for failure.
Original signature : -(NSAppleEventDescriptor*)executeAndReturnError:(NSDictionary**)
native declaration : NSAppleScript.h:45


executeAppleEvent_error

public abstract NSAppleEventDescriptor executeAppleEvent_error(NSAppleEventDescriptor event,
                                                               PointerByReference errorInfo)
Execute an Apple event in the context of the script, compiling the script first if it is not already compiled. Return the result of executing the event, or nil and a pointer to an error information dictionary for failure.
Original signature : -(NSAppleEventDescriptor*)executeAppleEvent:(NSAppleEventDescriptor*) error:(NSDictionary**)
native declaration : NSAppleScript.h:48


alloc

public static NSAppleScript alloc()

new_

public static NSAppleScript new_()

getNSClass

public static NSAppleScript._class_ getNSClass()


Copyright © 2009. All Rights Reserved.