Welcome to DU! The truly grassroots left-of-center political community where regular people, not algorithms, drive the discussions and set the standards. Join the community: Create a free account Support DU (and get rid of ads!): Become a Star Member Latest Breaking News Editorials & Other Articles General Discussion The DU Lounge All Forums Issue Forums Culture Forums Alliance Forums Region Forums Support Forums Help & Search
9 replies = new reply since forum marked as read
Highlight: NoneDon't highlight anything 5 newestHighlight 5 most recent replies
anyone know of a good simple tutorial on how to launch a app using mac os big sur thru (Original Post) AllaN01Bear Jun 2022 OP
Only half-way there but.. 4dog Jun 2022 #1
im reliving my old disk operating system days . im a keyboard maniac at heart.:) AllaN01Bear Jun 2022 #4
Use "open" usonian Jun 2022 #2
bing , bing , bing bing. AllaN01Bear Jun 2022 #3
Unix and friends are my native tongue. usonian Jun 2022 #5
You can use the "open" command, but beware of some magic CloudWatcher Jun 2022 #6
Your clarity is killing me. "... blinded me with Science." Tetrachloride Jun 2022 #7
using terminal :) CloudWatcher Jun 2022 #8
At UW-Madison, my database class was the lead of using Tetrachloride Jun 2022 #9

4dog

(520 posts)
1. Only half-way there but..
Mon Jun 27, 2022, 10:45 PM
Jun 2022

I googled MacOS Terminal Manual and got to Terminal User guide at support.apple.com. Labeled for my later OS but basics are not likely to change. There's a search option there; under first page of hits from 'launch app' was 'Execute commands and run tools in Terminal on Mac'.

But why not just put the app in the Applications folder and double-click?

usonian

(13,836 posts)
2. Use "open"
Mon Jun 27, 2022, 11:11 PM
Jun 2022

From stackexchange (short version)
How can I open an app using Terminal
http://apple.stackexchange.com/questions/355037/ddg#355040

You can use open’s -a option:

open -a Mail

You can specify the application path instead:

open /Applications/Mail.app

(cool applescript not shown)
-----------------------
Apps in the /Applications directory seem to work fine. (I don't know if anything in your $PATH will do so as well)

A bit more here (with pictures)
https://www.wikihow.com/Open-Applications-Using-Terminal-on-Mac

and more than you ever wanted to know, ever:
>man open

GOOD LUCK.

_____
Now, here's the secret sauce: an application is a DIRECTORY. But behaves like a file.
You can look at an app in the finder and right click/control click "Show Package Contents" to explore, but please don't change anything!

And P.S., you can "cd" to anywhere on the file system, and in the terminal that got you there
"open ." and that opens a finder window.




AllaN01Bear

(23,047 posts)
3. bing , bing , bing bing.
Tue Jun 28, 2022, 12:11 AM
Jun 2022

you just "triggered " me in a good way. i remember that term from my old disc operating system days. cd and cd.. comes from my dos days and linux days, as base file system is bsd . thanks for your advice .

usonian

(13,836 posts)
5. Unix and friends are my native tongue.
Tue Jun 28, 2022, 12:21 AM
Jun 2022

Just can't figure how to register this as a religion.

Apple changed default shells for some IP reason. I only upgrade by buying a new computer. Rarely, at that.

That is all.

CloudWatcher

(1,923 posts)
6. You can use the "open" command, but beware of some magic
Tue Jun 28, 2022, 12:26 AM
Jun 2022

This is likely more than you wanted to know, but ... you asked ... and for anyone else trying to use open ....

Big Sur has some magic under the hood for "merging" directories and while it's usually something that can be ignored, when you use "open" it becomes very visible.

Let's take a simple example: launching the Mail application.

In older Mac OS's you can do this in a Terminal shell window:

open /Applications/Mail.app

And it will launch the Mail application. But under Big Sur this same command fails. It's like Mail.app doesn't exist. You'll actually get the error:

The file /Applications/Mail.app does not exist.

But ... but ... when you examine /Applications with the Finder, you see Mail.app sitting right there.

So what's going on?

Apple has moved their apps and are using some slight-of-hand to mostly make it look like it did before.

The new layout is like this:

Customer installed applications go in /Applications/
Customer installed utilities go in /Applications/Utilities/
MacOS supplied applications go in /System/Applications/
MacOS supplied utilities go in /System/Applications/Utilities/

Looking at /Applications with the Finder shows the combined contents of /Applications and /System/Applications. And looking at /Applications/Utilities also shows the merged contents.

So ... wtf? Why did they do this? Because now the apps in /System/Applications/ are much more protected from malware. All the files under /System/ are almost impossible to modify outside of actual Apple-supplied updates.

And it "just works" if you use the normal user-interface to launch applications.

But if you use the "open" command in Terminal you'll need to give it the right path (when using paths).

So on Big Sur, the correct command to launch Mail is:

open /System/Applications/Mail.app

For a fun time, you can use the "ls" command to see where apps really live:

ls /Applications
ls /System/Applications

You'll see MacOS built-in apps in /System and customer (and Apple Store) supplied apps in /Applications. Note that "ls" is "el" and "s" ... not "one" and "s".

Pro tip #1: use the "tab" key for filename completion. What I type is:

ls /AppTAB

where TAB is just the tab key. And the shell will complete the path for me and prints out:

ls /Applications/

it will beep at you if what you've supplied (before hitting TAB) doesn't exist or is not unique.

Pro tip #2: you'll need quotes to enclose special characters in paths, especially spaces. E.g.

open "/Applications/Google Chrome.app"

Ok, enough for now. Hope this helps someone ... someday

CloudWatcher

(1,923 posts)
8. using terminal :)
Tue Jun 28, 2022, 02:43 PM
Jun 2022

You're too kind, thanks

I live and work in terminal. My family thinks it is funny ... but I've been using Unix since about 1980 and I've got my fingers trained for it.

Tetrachloride

(8,448 posts)
9. At UW-Madison, my database class was the lead of using
Tue Jun 28, 2022, 02:48 PM
Jun 2022

large screen workstations, Spring 1986. In my class of about 22, my partner and i were of the top 3 effective teams.

I should have been in the West Coast but….

Latest Discussions»Culture Forums»Apple Users»anyone know of a good sim...