Automator Action Xcode Project Settings
Automator action projects in Xcode 4 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.
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.
Name the action project and choose the template type: Cocoa action, Shell Script action, Cocoa-AppleScript action
Select the action target product and then select Edit Scheme… from the Product menu.
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.
Select the Arguments tab in the center of the sheet, and then select the action product from the Base Expansions On popup menu.
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:
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.