Optimize the command of run Mac app.