Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jdek/openwith

A small utility to specify which application bundle should open specific file extensions on macOS.
https://github.com/jdek/openwith

macos swift

Last synced: about 2 months ago
JSON representation

A small utility to specify which application bundle should open specific file extensions on macOS.

Awesome Lists containing this project

README

        

# openwith

A small utility to specify which application (via bundle id) should open specific file
extensions. It was made as a simplified version of
[duti](https://github.com/moretension/duti) which does not work on macOS Big
Sur (or later). openwith requires macOS 11.0 (or greater).

## Usage

```
usage: openwith [extension ...]
```

## Example

```sh
$ osascript -e 'id of app "mpv"'
io.mpv
$ openwith io.mpv mkv mov mp4 avi
mkv (org.matroska.mkv) -> io.mpv
mkv (io.mpv.mkv) -> io.mpv
mov (com.apple.quicktime-movie) -> io.mpv
mp4 (public.mpeg-4) -> io.mpv
mp4 (public.mpeg-4-audio) -> io.mpv
avi (public.avi) -> io.mpv
avi (io.mpv.avi) -> io.mpv
```