How to launch a Mac App with Command Line Parameters from the Dock

- by

In this episode I’ll show you how to launch a Mac App from the Command Line, so that we can pass parameters. I’ll also explain how to wrap up such a command into your own app and add an icon to it, so that you can launch it from the dock with a single click.

This can be useful if you need to convince Google Chrome or any other app to launch with certain parameters and modify its behaviour somehow. In my example I’m using Blender, and I’m using a startup parameter to change its default render engine upon launch. The same principles apply to any app you need to launch with startup parameters.

The process is as follows:

  • find out the full path of the app you want to launch
  • try launching your app from the command line
  • now add parameters to the end of the launch command
  • create an Automator App
  • change its icon from from the generic Otto Icon to your desired app’s icon
  • drag your new launcher app into the dock

I’ll explain all the gory details in this video.

Enjoy!



If you enjoy my content, please consider supporting me on Ko-fi. In return you can browse this whole site without any pesky ads! More details here.

3 thoughts on “How to launch a Mac App with Command Line Parameters from the Dock”

  1. Well!!
    I was so impressed.

    A really thorough and easy-to follow presentation and it all worked first time for me!

    I now have an icon on my dock that starts B-Folders with a second database, something that is supported on Android phone, but not directly on a desktop.

    Happy! Happy!
    David

Leave a Comment!

This site uses Akismet to reduce spam. Learn how your comment data is processed.