This directory contains examples demonstrating how to use StepTalk with the GNUstep NSScripting framework through the GSScriptingStepTalkBridge.
The GSScriptingStepTalkBridge allows StepTalk (Smalltalk-based scripting for GNUstep) to interact with scriptable applications using the NSScripting framework. This provides a powerful, dynamic scripting environment that can control applications supporting Apple Event-style scripting.
- GNUstep Base Library with NSScripting support
- StepTalk framework installed
- A scriptable application or test target
Demonstrates how to:
- Get the shared bridge instance
- Create and execute simple commands
- Work with command results
Shows how to:
- Build object specifiers for targeting specific objects
- Chain specifiers for nested objects
- Use different specifier types (index, name, property)
Demonstrates:
- Creating new objects in an application
- Getting and setting properties
- Querying object counts
- Deleting objects
From StepTalk:
"Load a script file"
Transcript loadScript: 'basic-commands.st'Or execute StepTalk code directly in your application.
The typical pattern for using the bridge is:
- Get the shared bridge instance
- Create object specifiers to identify target objects
- Create commands with appropriate arguments
- Execute commands and handle results
- Check for errors in command execution
- GSScriptingStepTalkBridge.h - Bridge interface documentation
- NSScriptCommand.h - Command execution
- NSScriptObjectSpecifier.h - Object specification
- StepTalk documentation