Friday, May 17, 2024
HomeTechnologySoftwareHow to Open an App from Anywhere on Mac Command Line

How to Open an App from Anywhere on Mac Command Line

Date:

Related stories

Samsung Galaxy Z Fold6 appears on Geekbench

The Samsung Galaxy Z Fold6 and Z Flip6...

Week 5 Meal Plan | The Recipe Critic

This website may contain affiliate links and advertising...

Statistics Outgrowing Other STEM Fields 2010-2013

Title: Embracing Statistics: A Pillar of Modern STEM...
spot_imgspot_img

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!

  • 7 Essential JavaScript Functions

    I remember the early days of JavaScript where you needed a simple function for just about everything because the browser vendors implemented features differently, and not just edge features, basic features, like addEventListener and attachEvent.  Times have changed but there are still a few functions each developer should…

  • JavaScript Promise API

    While synchronous code is easier to follow and debug, async is generally better for performance and flexibility. Why “hold up the show” when you can trigger numerous requests at once and then handle them when each is ready?  Promises are becoming a big part of the JavaScript world…



Source link

Latest stories

spot_img