14 votes

How to open a Microsoft Word document from the command line in macOS Sonoma?

I think that -a Finder.app is an incorrect syntax. You don't want to open it 'in' the Finder, you want to open it in Word. The following works for me in Sonoma: open -a "Microsoft Word.app" ...
benwiggy's user avatar
  • 35.8k
10 votes

What's the logic behind macOS Ventura having 6 folders which appear to be named Mail in ~/Library/Containers?

The folders are not named Mail, they are named specific things (as shown in Tetsujin's screenshot here). These containers refer to different components in Mail. The command line tool mdls will show ...
Ezekiel's user avatar
  • 9,263
10 votes
Accepted

How do I remove this redundant icon in my app switcher forever?

It looks like a Handoff icon, this is a "feature" that allows you to open an application that you have open on another device - as long as that device is nearby, both devices are logged into ...
David Rouse's user avatar
  • 1,707
9 votes

How are directory contents determined in Finder?

Your question and its examples relate to two distinct features of recent macOS. I will address this by looking at your Example 1 and then Examples 2 and 3. Example 1: (Text largely taken from answers ...
Gilby's user avatar
  • 10.9k
6 votes

How are directory contents determined in Finder?

The word you're looking for is 'firmlinks'. As always, Howard Oakley at Eclectic Light is a good resource. https://eclecticlight.co/2023/07/22/how-macos-depends-on-firmlinks/ Here's a link to the WWDC ...
Marc Wilson's user avatar
  • 6,005
5 votes
Accepted

Launch Screenshot.app from terminal

The correct path to the app is: /System/Applications/Utilities/Screenshot.app The system is stored on a separate read-only volume, and 'merged' in the Finder with the volume where any user changes ...
benwiggy's user avatar
  • 35.8k
5 votes
Accepted

Easiest way to create multiple nested folders

create a text file listing all directories to be created and store it in a convenient place foo foo/bar1 foo/bar2 bar bar/foo bar/bar bar/bar/foo create the main directory for a new project and cd ...
nohillside's user avatar
  • 101k
4 votes

How to prevent an application to automatically set itself as the default application?

If you do "Change All" in File > Get Info, I would expect that to stick, and not be reset. By which I mean that's my experience -- I've never seen a file association 'reset automatically' ...
benwiggy's user avatar
  • 35.8k
4 votes
Accepted

Spotlight Not Showing Core Applications on macOS Sonoma 14.0: How to Fix?

Solved ChatGPT suggested it might be corrupt indexing. And offered a step-by-step solution via Terminal. This solved the problem for me. I had tried these from other sources. Adding and removing HD ...
TheRawPerformer's user avatar
4 votes

How to add/keep vscode in dock

It appears that the icon you are referring to is a document icon and not the application icon. If you want to keep the application icon in the dock then right click on the application icon (which ...
SteveM's user avatar
  • 718
3 votes

Bug in the Finder on Ventura 13.3.1

If it's a bug, you should be able to reproduce this on a totally clean installation. I would make a backup and then erase the Mac and do nothing other than test for the bug. At that point, I would ...
bmike's user avatar
  • 236k
3 votes

How to install a large set of TTF fonts?

Open Font Book Drag&drop all font files into it or Select all fonts in Finder Right-click on selection and select “Open“
nohillside's user avatar
  • 101k
3 votes
Accepted

How to install a large set of TTF fonts?

There are several way you can do it. Select all in Finder. Right click > Open with > FontBook [can't have any folders selected this way, just fonts.] If Font Book is already open… Drag & ...
Tetsujin's user avatar
  • 116k
3 votes

Easiest way to create multiple nested folders

I would use the shell's brace expansion to create the folder hierarchy. As an example using nohillside's folder hierarchy- mkdir -p ./{foo/bar{1,2},bar/{foo,bar/foo}} You could stick this in a shell ...
fd0's user avatar
  • 10.7k
3 votes
Accepted

How do I get macOS Sonoma (14.0) to keep the same font size in the finder?

Copied from my own answer at Super User You might not be able to do this with one single settings change - depending on just how many folders are no longer at defaults. For comparison, check two or ...
Tetsujin's user avatar
  • 116k
3 votes

When I save a photo in MacOS Messages, where does it go?

There are three ways I can think of to get around this, & a 'get out of jail free' card for existing images. If you've already sent it as a Message - right click the image & select 'Show in ...
Tetsujin's user avatar
  • 116k
3 votes

Add 'Show Package Contents' destination as a folder in Finder sidebar

Drag the top folder called 'Contents' to the Sidebar.
Tetsujin's user avatar
  • 116k
3 votes
Accepted

On-Click Shortcut to Open File in Finder

Cmd ⌘ R is almost global for 'reveal in Finder'. It works from Spotlight & Find. I'm not sure when this changed, but in Ventura it also works for an Alias. In Mojave, for an Alias, 'Reveal ...
Tetsujin's user avatar
  • 116k
3 votes
Accepted

How to show my home directory in the Finder side bar?

Click the reveal arrow or Show, depending on OS, when you hover over Favourites.
Tetsujin's user avatar
  • 116k
3 votes

Having great difficulty organizing items by tags

According to Apple support document Use tags to organise files on Mac: You can tag files and folders to make them easier to find. Tags work with all your files and folders, whether you store them on ...
Aivar Paalberg's user avatar
3 votes
Accepted

Folder structure in finder different than terminal (and different from expected). Not hidden dirs

The issue was that I was syncing Documents with icloud. After removing this sync ~/Documents appeared for me again in finder. Info in link in the comments. What happens when you turn off iCloud Drive ...
Doug Fir's user avatar
  • 247
3 votes
Accepted

How to open a Microsoft Word document from the command line in macOS Sonoma?

I would type open then drag the document to the shell. (Skip the app entirely) See if the full path opens, no need to involve Finder. Worst case specify “Microsoft Word” as the app to open the ...
bmike's user avatar
  • 236k
3 votes
Accepted

how to write in system directories

The OS is on a separate, secure, read-only volume. "Your Data" -- everything you add -- is on another volume. The Finder presents the two as one combined file structure. If you want to add a ...
benwiggy's user avatar
  • 35.8k
3 votes
Accepted

Can't open multiple Finder windows from terminal

The flag -n opens a new instance of the application: it does not open a new window. Application windows are not separate instances of the application. I presume that it's not possible to create ...
benwiggy's user avatar
  • 35.8k
3 votes
Accepted

How to exclude a folder from `find`?

In the first command, the name of the directory you want to prune is just '.Spotlight-V100' (without the trailing slash): find . -name .Spotlight-V100 -prune -o -type f
Linc D.'s user avatar
  • 751
2 votes

How do I get Finder to remember the size and location of the window?

Found a solution like @Ruskes's answer which doesn't work for me. Close all the existing windows. Open a new window and move it to your preferred location, resize it if needed. Press Cmd + Alt + Esc ...
Itachi's user avatar
  • 141
2 votes

Is there a way to access the "Recent Items" list from the terminal?

Consider something like this which is not exactly what you asked for but might be close. mdfind 'kMDItemLastUsedDate >= $time.today()' | grep -vE '^.+Applications.+\.app'
Alan Berezin's user avatar
2 votes

Remove folders in ~/Library/Mobile Documents

Apps that utilise iCloud storage create containers where application data is stored. When an App is uninstalled, an uninstall routine is called which allows the App to clear up local and remote files, ...
felpsey's user avatar
  • 21
2 votes
Accepted

How does macOS store the location of a file within a folder

I, too, have found this to be a "super hard question to search for". Fortunately, I have had some success. I presume that in asking where the position data is stored, you are interested in ...
August's user avatar
  • 495
2 votes
Accepted

Unable to copy or compress folders in actively synching iCloud Documents and Desktop folders

For those with this issue and no available time machine backup: I was getting this error when trying to compress or move folders stored in iCloud. Additionally, my iCloud folders all had the cloud ...
TripleMonkey's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible