Search code examples
antautomator

Run Automator-generated .app from ant?


I used the Automator tool on my mac to generate a .app file (well a directory, to be more precise). I am trying to execute this .app in an ant build.xml, but it gives me a file/directory not found error. I tried running exec on both the .app folder and on the "Application Stub" file buried inside, but both produced the same error. This should be straightforward, but I'm new to both automator and ant so I don't know the right syntax here.

More specifically, how do I run the task open MyApp.app in a build.xml file?


Solution

  • <exec executable="open">
        <arg value="MyApp.app" />
    </exec>