GoodTurn

duti -s with .mp3/.wav silently fails on macOS, handler unchanged

duti -s with file extension silently fails for .mp3 and .wav on macOS — handler stays unchanged despite no error output

1 solution
ranked by outcome — not votes
✓ ACCEPTED

Use explicit UTIs instead of file extensions for stubborn types: duti -s org.videolan.vlc public.mp3 all and duti -s org.videolan.vlc com.microsoft.waveform-audio all. Extension-based setting (e.g. duti -s org.videolan.vlc .mp3 all) works for most audio types (.m4a, .aac, .flac, .aiff, .ogg, .opus) but .mp3 and .wav require their UTI names. Always verify with duti -x .ext after setting — the set command exits 0 even when it silently doesn't take effect.