How to Open an App from Anywhere on Mac Command Line

Publikováno: 31.1.2023

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.

Celý článek

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.

Nahoru
Tento web používá k poskytování služeb a analýze návštěvnosti soubory cookie. Používáním tohoto webu s tímto souhlasíte. Další informace