Home » Questions » Computers [ Ask a new question ]

Run application with parameters

Run application with parameters

I'd like to start an application (Google Chrome) with a parameter (--enable-sync), but how can you do this on OS X? I've tried creating a terminal script, but I get the error message, "Google Chrome.app" is a folder... (this is of course correct, because applications are bundles on OS X).

Asked by: Guest | Views: 183
Total answers/comments: 3
Guest [Entry]

"It's possible to run a command line operation via AppleScript.

The command looks like this:

do shell script ""{command}""

You can use the OSX Script Editor to create this script. There's a pretty good intro here:
Script Editor Intro

Once you've made your script, you can ""Save as Application"" to have OSX create an application bundle for your AS file. Then you can launch your application just like any other program!"
Guest [Entry]

They didn't make any change to the Mac Chromium Dev build, just on the Windows Dev Build.
Guest [Entry]

"You could wrap your shell script in an application bundle wrapper using Platypus:

http://sveinbjorndotorg/platypus

""Platypus is a developer tool for the Mac OS X operating system. It can be used to create native, flawlessly integrated Mac OS X applications from interpreted scripts such as shell scripts or Perl, Ruby and Python programs. This is done by wrapping the script in an application bundle directory structure along with an executable binary that runs the script."""