AMApple is considered deprecated. Use the Cocoa-AppleScript template (an instance of
AMBundle) in Xcode to create AppleScript-based Automator actions.
- macOS 10.4+
Instances of the
AMApple class own Automator actions whose runtime behavior is driven by an AppleScript script. An
AMApple object holds the compiled script as an instance of the
OSAScript class. By default, the
OSAScript object is instantiated from the script in the Xcode project file
When you create a Automator Applescript Action project in Xcode, the project template supplies an
AMApple instance as File’s Owner of the action bundle. This ready-made instance provides a default implementation of the
run(with method that uses the logic defined in the script. You can substitute your own subclass of
AMApple for File’s Owner if you need to.