I have my Mac OS application, that does some job with image you choose in UI application. I want to find the best solution, how use the same sources, but run my app from CLI like
open MyApp.app image=$IMAGE_URL
And do all the job in background, without invoking UI component. If use "open" command, how access my arguments from sources and how avoid UI invoking? If it is not correct solution, please, provide any others.