Squeak Class Documentation category index | class index  
 
ApplescriptInstance
  category: VMConstruction-Applescript
  superclass: ComponentInstance
  subclasses:

I represent an Applescript Scripting Component, derived from the Component Manager. For more information about Scripting Components, see Inside Macintosh: Interapplication Communications, at:

http://developer.apple.com/techpubs/mac/IAC/IAC-2.html.

Essentially, I represent a record comprising a one-word handle to the scripting component. That handle is passed as a matter of course to almost every important Applescript call. Accordingly, I am also the repository for most of the primitives for the Applescript/Squeak interface.

instance methods
  error handling
  lastBriefErrorString
lastError
lastErrorCodeRange
lastErrorNumber
lastErrorString

  intermediate operations
  compileAndDisposeAEDesc:mode:
displayAndDisposeOSAID:as:mode:
executeAndDisplayOSAID:in:mode:
executeAndDisposeOSAID:in:mode:
executeOSAID:in:mode:
loadAndDisposeAEDesc:mode:
makeContextAndDiposeOSAID:
makeContextAndDisposeOSAID:
makeContextOSAID:
storeAndDisposeOSAID:type:mode:
storeOSAID:type:mode:

  interpreting
  compile:
compile:mode:
do:
do:in:mode:
doCompiledScript:in:mode:
doScript:
doScript:in:mode:
scriptingName
sourceOfOSAID:
valueOf:in:mode:

  printing
  printOn:

  private
  initialize
primOSACompile:mode:to:
primOSADisplay:as:mode:to:
primOSADispose:
primOSADoScript:in:mode:resultType:to:
primOSAExecute:in:mode:to:
primOSAGetScriptInfo:type:to:
primOSAGetSource:type:to:
primOSALoad:mode:to:
primOSAMakeContext:parent:to:
primOSAScriptError:type:to:
primOSAScriptingComponentNameTo:
primOSAStore:resultType:mode:to:
reopen

  testing
  hasSource:
isCompiledScript:
isScriptContext:
isScriptValue:
timesModified:

class methods
  as yet unclassified
  new

instance methods
  error handling top  
 

lastBriefErrorString

Answer the brief error message for the last error


 

lastError


 

lastErrorCodeRange

Answer the brief error message for the last error


 

lastErrorNumber

Answer the error code number of the last error


 

lastErrorString

Answer the error message for the last error


  intermediate operations top  
 

compileAndDisposeAEDesc:mode:


 

displayAndDisposeOSAID:as:mode:


 

executeAndDisplayOSAID:in:mode:


 

executeAndDisposeOSAID:in:mode:


 

executeOSAID:in:mode:


 

loadAndDisposeAEDesc:mode:


 

makeContextAndDiposeOSAID:


 

makeContextAndDisposeOSAID:


 

makeContextOSAID:


 

storeAndDisposeOSAID:type:mode:


 

storeOSAID:type:mode:


  interpreting top  
 

compile:


 

compile:mode:


 

do:

Answer text result of compiling script in null context


 

do:in:mode:

Answer text result of executing Applescript aString in context contexOSAID in mode: anInteger


 

doCompiledScript:in:mode:

Answer text result of executing Applescript aString in context contexOSAID in mode: anInteger


 

doScript:

Answer text result of compiling script in null context


 

doScript:in:mode:

Answer text result of executing Applescript aString in context contexOSAID in mode: anInteger


 

scriptingName

Answer the name of my generic scripting component


 

sourceOfOSAID:


 

valueOf:in:mode:

Answer text result of executing Applescript aString in context contexOSAID in mode: anInteger


  printing top  
 

printOn:

Append a sequence of characters that identify the receiver to aStream.


  private top  
 

initialize


 

primOSACompile:mode:to:


 

primOSADisplay:as:mode:to:


 

primOSADispose:


 

primOSADoScript:in:mode:resultType:to:


 

primOSAExecute:in:mode:to:


 

primOSAGetScriptInfo:type:to:


 

primOSAGetSource:type:to:


 

primOSALoad:mode:to:


 

primOSAMakeContext:parent:to:


 

primOSAScriptError:type:to:


 

primOSAScriptingComponentNameTo:


 

primOSAStore:resultType:mode:to:


 

reopen


  testing top  
 

hasSource:


 

isCompiledScript:


 

isScriptContext:


 

isScriptValue:


 

timesModified:


class methods
  as yet unclassified top  
 

new

Answer a new instance of me, with size = 0.