In Windows, you can edit an application shortcut and change the shortcut's target. How do you do this in Mac OS?
For example, I want to change my Chrome application to do verbose logging, by appending this to the run command: --enable-logging --v=1
.
Best Answer
You can use Automator or AppleScript to make an app that launches the app with specific arguments:
Or you can go into the app bundle and modify the Info.plist, changing
CFBundleExecutable
from (for example) "Google Chrome" to the name of a new wrapper script that you put in MacOS. Here's a Python script that automates that for you (It actually makes a new app with symlinks). Run it withpython linkapp.py
<path to actual app> <where to put new app>
in Terminal. When it asks you whether to create a wrapper script, answery
.(the script is now on GitHub, but I'll try to keep this one updated)