Technical Q&A QA1885

Testing an Automator Action Xcode Project

Q:  I’ve built an Automator action project in Xcode. How do I test my action in Automator?

A: To test an Automator action Xcode project, you first set Automator as the run executable for the project, and then provide an argument that tells Automator where to find your action.

Figure 1  
Figure 1 Art/qa1885_figure_01.pngFigure 1 Art/qa1885_figure_01.png
Figure 2  
Figure 2 Art/qa1885_figure_02.pngFigure 2 Art/qa1885_figure_02.png

Listing 1  

Figure 3  
Figure 3 Art/qa1885_figure_03.pngFigure 3 Art/qa1885_figure_03.png

After you’ve configured your Xcode project as described above, choose Product > Run or press Command-R. An instance of Automator should launch and load your action. Search Automator’s action library to find it. Now, you can test your action. After you’ve stopped testing, return to Xcode and resume development.

Document Revision History


New document that explains how to enable testing of an Automator action project in Xcode.