Automator.framework

@interface AMAction : NSObject

// Instance Members
- (BOOL)ignoresInput;
- (NSString*)name;
- (id)initWithContentsOfURL:(NSURL*)fileURL error:(NSError**)outError;
- (id)initWithDefinition:(NSDictionary*)dict fromArchive:(BOOL)archived;
- (id)output;
- (id)runWithInput:(id)input fromAction:(AMAction*)anAction error:(NSDictionary**)errorInfo;
- (void)activated;
- (void)closed;
- (void)didFinishRunningWithError:(NSDictionary*)errorInfo;
- (void)opened;
- (void)parametersUpdated;
- (void)reset;
- (void)runAsynchronouslyWithInput:(id)input;
- (void)stop;
- (void)updateParameters;
- (void)willFinishRunning;
- (void)writeToDictionary:(NSMutableDictionary*)dictionary;

@interface AMAppleScriptAction : AMBundleAction

// Instance Members
- (OSAScript*)script;
- (void)setScript:(OSAScript*)newScript;

@interface AMBundleAction : AMAction

// Instance Members
- (BOOL)hasView;
- (NSBundle*)bundle;
- (NSMutableDictionary*)parameters;
- (NSView*)view;
- (id)initWithDefinition:(NSDictionary*)dict fromArchive:(BOOL)archived;
- (void)awakeFromBundle;
- (void)setParameters:(NSMutableDictionary*)newParameters;

@interface AMShellScriptAction : AMBundleAction

// Instance Members
- (BOOL)remapLineEndings;
- (NSString*)inputFieldSeparator;
- (NSString*)outputFieldSeparator;

@interface AMWorkflow : NSObject

// Class Members
+ (id)runWorkflowAtURL:(NSURL*)fileURL withInput:(id)input error:(NSError**)error;

// Instance Members
- (BOOL)setValue:(id)value forVariableWithName:(NSString*)variableName;
- (BOOL)writeToURL:(NSURL*)fileURL error:(NSError**)outError;
- (NSArray*)actions;
- (NSURL*)fileURL;
- (id)initWithContentsOfURL:(NSURL*)fileURL error:(NSError**)outError;
- (id)input;
- (id)valueForVariableWithName:(NSString*)variableName;
- (void)addAction:(AMAction*)action;
- (void)insertAction:(AMAction*)action atIndex:(NSUInteger)index;
- (void)moveActionAtIndex:(NSUInteger)startIndex toIndex:(NSUInteger)endIndex;
- (void)removeAction:(AMAction*)action;
- (void)setInput:(id)input;

@interface AMWorkflowController : NSController

// Instance Members
- (AMWorkflow*)workflow;
- (AMWorkflowView*)workflowView;
- (BOOL)canRun;
- (BOOL)isRunning;
- (IBAction)run:(id)sender;
- (IBAction)stop:(id)sender;
- (id)delegate;
- (void)setDelegate:(id)delegate;
- (void)setWorkflow:(AMWorkflow*)workflow;
- (void)setWorkflowView:(AMWorkflowView*)view;

@interface NSObject (AMWorkflowControllerDelegate)

// Instance Members
- (void)workflowController:(AMWorkflowController*)controller didError:(NSError*)error;
- (void)workflowController:(AMWorkflowController*)controller didRunAction:(AMAction*)action;
- (void)workflowController:(AMWorkflowController*)controller willRunAction:(AMAction*)action;
- (void)workflowControllerDidRun:(AMWorkflowController*)controller;
- (void)workflowControllerDidStop:(AMWorkflowController*)controller;
- (void)workflowControllerWillRun:(AMWorkflowController*)controller;
- (void)workflowControllerWillStop:(AMWorkflowController*)controller;

@interface AMWorkflowView : NSView

// Instance Members
- (BOOL)isEditable;
- (void)setEditable:(BOOL)flag;