How do I open FileMerge.app on Mac OS 10.13+ and Xcode 9+?
Asked Answered
P

5

29

I see FileMerge in the Xcode app bundle:

/Applications/Xcode.app/Contents/Applications/FileMerge.app

I know I can open it on the command line using:

open /Applications/Xcode.app/Contents/Applications/FileMerge.app

But there seems like there should be an easier way. How can I tell Spotlight about FileMerge so I can open it with the keyboard? Is there another way to launch it without having to use the command-line?

Pulverulent answered 29/11, 2017 at 23:38 Comment(0)
A
16

Symbolic links also work.

% cd /Applications

% ln -s Xcode.app/Contents/Applications/FileMerge.app/ .

Anadem answered 28/7, 2018 at 13:52 Comment(2)
FWIW this does work for letting me go to /Applications/ and click on it, but doesn't make it show up in Spotlight (at lest not so far, maybe it will change, but usually Spotlight picks up changes to Applications immediately)Thumbtack
This also happened to me, but then when I tried creating an alias, as another another answer suggests, it started showing the alias and the symbolic link, so later I removed the alias.Ileana
T
11

The easiest way I found was open -a FileMerge

Tarr answered 28/11, 2019 at 13:4 Comment(0)
H
8

Put an alias into the Applications folder. Spotlight and Launchpad will find it.

Hitchhike answered 29/11, 2017 at 23:40 Comment(1)
Hold command and option while dragging FileMerge.app to /Applications to create an alias without macOS wanting permissions to create the alias in the Xcode app's directory.Capacitate
S
7

On MacOS Catalina, you just need to open spotlight (cmd+space) and type "FileMerge".

Systematism answered 9/12, 2019 at 6:56 Comment(4)
Are you sure? I have a fresh copy of Catalina from a laptop bought Jan 2020 and Xcode is installed, but Spotlight doesn't find FileMerge.Thumbtack
@Thumbtack it finds FileMerge on Mojave too. No need to do anything. Retry after ticking all boxes in spotlight preferences.Brakesman
yeah, it is not showing up anymore on spotlight, MacOS 10.15.6Systematism
@Systematism Right-click on Xcode and select Show Package Contents. You should be able to locate FileMerge this way on macOS Ventura 13.2 at /Applications/Xcode.app/Contents/ApplicationsMotherly
F
6

I had to do xcode-select -s /Applications/Xcode.app/Contents/Developer in order to have opendiff be accessible (required for SourceTree).

Friarbird answered 8/3, 2019 at 3:13 Comment(3)
I came here looking for a way to launch FileMerge from the command line while passing the left and right file paths to it programmatically. It looks like that is apparently exactly what opendiff is (opendiff <left> <right>). I wonder why they went with that name instead of filemerge for the command line version?Fulvia
Works for me, see also here: gist.github.com/kristofferh/2895878Knee
Alternatively, you can open Xcode, then select "Settings" -> "Locations" and select the command line tools in the "Command Line Tools" selector.Lolland

© 2022 - 2024 — McMap. All rights reserved.