How to Open an App from Anywhere on Mac Command Line

Many engineers like myself live in the command line, and perform actions from command line that most others would click an icon for. I’ve always found opening apps from command line on Macs painful. You need to references the Applications directory, add .app to the name, etc. I just want to open apps by name. […]

The post How to Open an App from Anywhere on Mac Command Line appeared first on David Walsh Blog.


This content originally appeared on David Walsh Blog and was authored by David Walsh

Many engineers like myself live in the command line, and perform actions from command line that most others would click an icon for. I’ve always found opening apps from command line on Macs painful. You need to references the Applications directory, add .app to the name, etc. I just want to open apps by name.

To open an app from any directory by its simple name, you can use the -a argument to open:

open -a  Cyberduck

# Works regardless of case as well
open -a CyBeRdUcK

I love -a for a command like open. Being able to open any app by name is exactly what I want!

The post How to Open an App from Anywhere on Mac Command Line appeared first on David Walsh Blog.


This content originally appeared on David Walsh Blog and was authored by David Walsh


Print Share Comment Cite Upload Translate Updates
APA

David Walsh | Sciencx (2023-01-31T10:58:14+00:00) How to Open an App from Anywhere on Mac Command Line. Retrieved from https://www.scien.cx/2023/01/31/how-to-open-an-app-from-anywhere-on-mac-command-line/

MLA
" » How to Open an App from Anywhere on Mac Command Line." David Walsh | Sciencx - Tuesday January 31, 2023, https://www.scien.cx/2023/01/31/how-to-open-an-app-from-anywhere-on-mac-command-line/
HARVARD
David Walsh | Sciencx Tuesday January 31, 2023 » How to Open an App from Anywhere on Mac Command Line., viewed ,<https://www.scien.cx/2023/01/31/how-to-open-an-app-from-anywhere-on-mac-command-line/>
VANCOUVER
David Walsh | Sciencx - » How to Open an App from Anywhere on Mac Command Line. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2023/01/31/how-to-open-an-app-from-anywhere-on-mac-command-line/
CHICAGO
" » How to Open an App from Anywhere on Mac Command Line." David Walsh | Sciencx - Accessed . https://www.scien.cx/2023/01/31/how-to-open-an-app-from-anywhere-on-mac-command-line/
IEEE
" » How to Open an App from Anywhere on Mac Command Line." David Walsh | Sciencx [Online]. Available: https://www.scien.cx/2023/01/31/how-to-open-an-app-from-anywhere-on-mac-command-line/. [Accessed: ]
rf:citation
» How to Open an App from Anywhere on Mac Command Line | David Walsh | Sciencx | https://www.scien.cx/2023/01/31/how-to-open-an-app-from-anywhere-on-mac-command-line/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.