Automator Action Xcode Project Settings

Automator action projects in Xcode 4 and higher will not execute when built and run. This is a known bug and will be addressed in future versions of Xcode. Until then, follow these simple steps to fix the issue and have your Automator action project execute correctly.

STEP 01

The first step is to create a new Automator Action project in Xcode 4. Select Application Plug-In from the templates list, and select Automator Action as the chosen template.

STEP 02

Name the action project and choose the template type: Cocoa action, Shell Script action, Cocoa-AppleScript action

STEP 03

Select the action target product and then select Edit Scheme… from the Product menu.

STEP 04

In the Product Scheme sheet, attached to the Xcode window, select Run Automator.app in the list on the left, the Info tab in the center of the sheet, and then select the Automator application as the executable from the Executable popup menu.

STEP 05

Select the Arguments tab in the center of the sheet, and then select the action product from the Base Expansions On popup menu.

STEP 06

The final step is to click the Plus (+) button in the Arguments Passed On Launch area and enter the following string in the new text input field:

-action "$(BUILT_PRODUCTS_DIR)/$(FULL_PRODUCT_NAME)"

RESULTS

With these changes to the project file, Automator will now launch when the project is built and run, and you can access the created action in the Automator library.