Mac Developer Library

Developer

Automator Framework Reference Automator Constants Reference

Options
Deployment Target:

On This Page
Language:

Automator Constants Reference

This document defines constants in the Automator framework that are not associated with a particular class.

Constants

Enumerations

  • NSError codes in the Automator error domain.

    Declaration

    Swift

    var AMWorkflowNewerVersionError: Int { get } var AMWorkflowPropertyListInvalidError: Int { get } var AMWorkflowNewerActionVersionError: Int { get } var AMWorkflowOlderActionVersionError: Int { get } var AMUserCanceledError: Int { get } var AMNoSuchActionError: Int { get } var AMActionNotLoadableError: Int { get } var AMActionArchitectureMismatchError: Int { get } var AMActionRuntimeMismatchError: Int { get } var AMActionLoadError: Int { get } var AMActionLinkError: Int { get } var AMActionApplicationResourceError: Int { get } var AMActionApplicationVersionResourceError: Int { get } var AMActionFileResourceError: Int { get } var AMActionLicenseResourceError: Int { get } var AMActionRequiredActionResourceError: Int { get } var AMActionInitializationError: Int { get } var AMActionExecutionError: Int { get } var AMActionExceptionError: Int { get } var AMActionPropertyListInvalidError: Int { get } var AMActionInsufficientDataError: Int { get } var AMActionIsDeprecatedError: Int { get } var AMActionFailedGatekeeperError: Int { get } var AMActionSignatureCorruptError: Int { get } var AMActionQuarantineError: Int { get } var AMActionXProtectError: Int { get } var AMActionMalwareError: Int { get } var AMConversionNotPossibleError: Int { get } var AMConversionNoDataError: Int { get } var AMConversionFailedError: Int { get }

    Objective-C

    enum { // Workflow errors AMWorkflowNewerVersionError = -100, AMWorkflowPropertyListInvalidError = -101, AMWorkflowNewerActionVersionError = -111, AMWorkflowOlderActionVersionError = -112, // Workflow runtime errors AMUserCanceledError = -128, // Action errors AMNoSuchActionError = -200, AMActionNotLoadableError = -201, AMActionArchitectureMismatchError = -202, AMActionRuntimeMismatchError = -203, AMActionLoadError = -204, AMActionLinkError = -205, AMActionApplicationResourceError = -206, AMActionApplicationVersionResourceError = -207, AMActionFileResourceError = -208, AMActionLicenseResourceError = -209, AMActionRequiredActionResourceError = -210, AMActionInitializationError = -211, AMActionExecutionError = -212, AMActionExceptionError = -213, AMActionPropertyListInvalidError = -214, AMActionInsufficientDataError = -215, AMActionIsDeprecatedError = -216, AMActionFailedGatekeeperError = -217, AMActionSignatureCorruptError = -218, AMActionQuarantineError = -219, AMActionXProtectError = -220, AMActionMalwareError = -221, // Data conversion errors AMConversionNotPossibleError = -300, AMConversionNoDataError = -301, AMConversionFailedError = -302 };

    Constants

    • AMWorkflowNewerVersionError

      AMWorkflowNewerVersionError

      Attempt to open a workflow document that was saved with a newer version of Automator.

      Available in OS X v10.5 and later.

    • AMWorkflowPropertyListInvalidError

      AMWorkflowPropertyListInvalidError

      Attempt to open a workflow document whose property list (document.wflow) could not be read; the property list document could be missing, damaged, or constructed improperly.

      Available in OS X v10.5 and later.

    • AMWorkflowNewerActionVersionError

      AMWorkflowNewerActionVersionError

      An action in a workflow is newer than the installed action; this error is presented to the user as a warning.

      Available in OS X v10.5 and later.

    • AMWorkflowOlderActionVersionError

      AMWorkflowOlderActionVersionError

      An action in a workflow is older than the installed action; this error is presented to the user as a warning.

      Available in OS X v10.5 and later.

    • AMUserCanceledError

      AMUserCanceledError

      The user cancelled. This error is the same as the AppleScript error userCanceledErr, defined in MacErrors.h. When an Apple Event is canceled by the user, a running action may return this error. Automator ignores the error and stops the workflow gracefully, without displaying the error to the user.

      Available in OS X v10.5 and later.

    • AMNoSuchActionError

      AMNoSuchActionError

      The action could not be located on the system.

      Available in OS X v10.5 and later.

    • AMActionNotLoadableError

      AMActionNotLoadableError

      The action's executable is of a type that is not loadable in the current process. If the action uses a custom subclass of AMBundleAction or AMAppleScriptAction, then the most likely problem is that the bundle's executable is missing or the NSPrincipleClass is not set in the Info.plist. Users are likely to be confused by a “missing bundle” error, so Automator presents it as the more generic “action not loadable” error.

      Available in OS X v10.5 and later.

    • AMActionArchitectureMismatchError

      AMActionArchitectureMismatchError

      The action's binary is not compatible with the current processor; actions compiled for PowerPC, for example, would encounter this error on Intel systems.

      Available in OS X v10.5 and later.

    • AMActionRuntimeMismatchError

      AMActionRuntimeMismatchError

      An attempt was made to load an action that is not compiled in a way that is compatible with the current application; for example, the action may be compiled for 32-bit applications.

      Available in OS X v10.5 and later.

    • AMActionLoadError

      AMActionLoadError

      The action's executable failed to load; for example, there may have been a problem with a library it depends on.

      Available in OS X v10.5 and later.

    • AMActionLinkError

      AMActionLinkError

      The action's executable failed to load due to linking issues.

      Available in OS X v10.5 and later.

    • AMActionApplicationResourceError

      AMActionApplicationResourceError

      An application required by the action is not found.

      Available in OS X v10.5 and later.

    • AMActionApplicationVersionResourceError

      AMActionApplicationVersionResourceError

      An application required by the action is the wrong version.

      Available in OS X v10.5 and later.

    • AMActionFileResourceError

      AMActionFileResourceError

      A file required by the action is not found.

      Available in OS X v10.5 and later.

    • AMActionLicenseResourceError

      AMActionLicenseResourceError

      A license required by the action was not found. The only license currently supported is QuickTime Pro.

      Available in OS X v10.5 and later.

    • AMActionRequiredActionResourceError

      AMActionRequiredActionResourceError

      An action required by the action is not loaded.

      Available in OS X v10.5 and later.

    • AMActionInitializationError

      AMActionInitializationError

      Automator is unable to initialize an action (reason unknown).

      Available in OS X v10.5 and later.

    • AMActionExecutionError

      AMActionExecutionError

      An action encounters an error while running (reason unknown).

      Available in OS X v10.5 and later.

    • AMActionExceptionError

      AMActionExceptionError

      An action encounters an exception while running.

      Available in OS X v10.5 and later.

    • AMActionPropertyListInvalidError

      AMActionPropertyListInvalidError

      The property list (Info.plist) for an action is invalid; it could be missing, damaged, or constructed improperly.

      Available in OS X v10.5 and later.

    • AMActionInsufficientDataError

      AMActionInsufficientDataError

      The action requires input data to run, but none was supplied.

      Available in OS X v10.5 and later.

    • AMActionIsDeprecatedError

      AMActionIsDeprecatedError

      The action has been deprecated. Use a replacement action, if available.

      Available in OS X v10.5 and later.

    • AMActionFailedGatekeeperError

      AMActionFailedGatekeeperError

      This action doesn’t meet the Gatekeeper security policy.

      Available in OS X v10.10 and later.

    • AMActionSignatureCorruptError

      AMActionSignatureCorruptError

      The developer signature for this action is corrupted.

      Available in OS X v10.10 and later.

    • AMActionQuarantineError

      AMActionQuarantineError

      This action has been quarantined by XProtect, the anti-malware system on the Mac.

      Available in OS X v10.10 and later.

    • AMActionXProtectError

      AMActionXProtectError

      XProtect is unable to successfully analyze the action.

      Available in OS X v10.10 and later.

    • AMActionMalwareError

      AMActionMalwareError

      This action has been identified as malware by XProtect.

      Available in OS X v10.10 and later.

    • AMConversionNotPossibleError

      AMConversionNotPossibleError

      The converter determines that it is unable to convert from one data type to another. Not displayed to the user.

      Available in OS X v10.5 and later.

    • AMConversionNoDataError

      AMConversionNoDataError

      The converter determines that a given conversion, though possible, would produce a nil result. Not displayed to the user.

      Available in OS X v10.5 and later.

    • AMConversionFailedError

      AMConversionFailedError

      Occurs when, for example, the converter encounters an error converting data from one type to another.

      Available in OS X v10.5 and later.

    Discussion

    The constants in this enumeration are NSError code numbers in the Automator error domain (AMAutomatorErrorDomain). You’ll obtain these error codes from the instances of NSError returned, for example, by certain methods of AMWorkflow and AMWorkflowController. For related information, see AMActionErrorKey.

Constants

  • These constants are used in the Automator framework.

    Declaration

    Swift

    var AMAutomatorErrorDomain: String { get } var AMActionErrorKey: String { get }

    Objective-C

    #define AMAutomatorErrorDomain @"com.apple.Automator" #define AMActionErrorKey @"AMActionErrorKey"

    Constants

    • AMAutomatorErrorDomain

      AMAutomatorErrorDomain

      This constant defines the Automator error domain.

      Available in OS X v10.5 and later.

    • AMActionErrorKey

      AMActionErrorKey

      Use this key to obtain, from the userInfo dictionary of an instance of NSError, a reference to the action (class AMAction) that caused the error.

      Available in OS X v10.5 and later.