How to show a port's project folder in Finder with NotchStar
To find where a running server lives on disk, open Disk, then Monitor, then Ports, and press the folder icon on its row. Finder opens with the process’s working directory selected. For a dev server this is usually the project it was started from.
What it reveals
NotchStar asks lsof for the current working directory of each process that is listening. That is the folder the program was started in. It is shown in the grey path on the row, and it is what the folder icon reveals. It is not necessarily the folder the program file is in.
For a dev server run from a terminal, those are the same: you changed into the project, then ran npm run dev or similar. For a program started by another tool, the working directory can be somewhere unexpected.
Steps
- Find the row, using the filter if needed.
- Press the folder icon, labelled Show project in Finder.
- Finder opens at that folder, and the header confirms it.
When it is disabled
The button is greyed out when the working directory is empty or /. That happens when NotchStar cannot read it, which is typical for system services and for processes owned by another user. The row then shows the process ID instead of a path.
Why this helps
When two projects both want port 3000, or something is still running from last week, the project name on the row and the Finder reveal let you see which one it is before you decide to stop it. The row’s name logic is explained in the Ports list columns. The Disk feature page lists the rest of the tab.