Open Application with different icon from command-line

0

I have different configurations for my emacs set up and use a different alias from the command line to open each. Something like this:

alias dm="open -n -a /Applications/Emacs.app --args --with-profile doom"

Is there a way to set a custom icon for this app depending on which alias I use to open the same Emacs.app?

I've looked at the man page for open and couldn't find anything.


For now I just duplicated Emacs.app and set a different icon and name for each one, but that doesn't scale as well as I'd like it to and might have unintended side-effects, so I'm looking for a better way.

Bruno Ely

Posted 2019-04-18T03:38:48.210

Reputation: 111

No answers