run application, with name containing spaces, from the command line with switches

I would like to run an application from the terminal with a switch:


open -a Google Chrome.app max_old_space_size=4096


But it does not work because the name contains a space. I can start it by adding quotes and not the switch:


open -a 'Google Chrome.app'


But if I add the switch, it does not work.


open -a 'Google Chrome.app' max_old_space_size=4096


So how can I run this application with the switch?



MacBook Pro Retina (2015 and later)

Posted on Jan 17, 2019 4:14 AM

Reply
1 reply

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

run application, with name containing spaces, from the command line with switches

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.