How to run .app applications on Mac OS X

asked 13 Sep '11, 06:03

Jake's gravatar image

Jake ♦♦
accept rate: 98%

Sometimes, as part of a Mac OS X install, it is necessary to run a .app application. A .app application is indeed a directory, with a well defined structure. Mac OS X recognizes and interprets it as an application when invoked through the graphical interface (i.e., from Finder). InstallBuilder <runProgram> action works like a command line invocation, so you have two options to invoke a .app from command line:

Option 1: Run it through the OS X shell command "open":


This has the drawback that the OS will return control immediately after invocation, so the installer will continue its work at the same time than the .app is running, which may or may not work for your particular situation.

Option 2: Explore the .app structure, looking for the executable file. It is usually stored under "". The exact name can be found in another file inside the bundle: Contents/Info.plist. This is a text file that should contain something similar to:


Where myExecutable is the name of your particular application. In that case, you could use a runProgram action as shown below:

     <programArguments>arguments go here</programArguments>

answered 13 Sep '11, 06:08

Jake's gravatar image

Jake ♦♦
accept rate: 98%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: 13 Sep '11, 06:03

Seen: 39,670 times

Last updated: 13 Sep '11, 06:08