Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 9 days ago
JSON representation
A small utility to specify which application bundle should open specific file extensions on macOS.
- Host: GitHub
- URL: https://github.com/jdek/openwith
- Owner: jdek
- License: unlicense
- Created: 2021-05-01T14:21:44.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-10-28T07:32:51.000Z (about 2 years ago)
- Last Synced: 2024-08-02T16:10:09.682Z (3 months ago)
- Topics: macos, swift
- Language: Swift
- Homepage:
- Size: 4.88 KB
- Stars: 104
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```