Skip to content

Instantly share code, notes, and snippets.

@dmitriykovalev
Last active August 28, 2024 08:26
Show Gist options
  • Select an option

  • Save dmitriykovalev/4236142c98459baa4e54a1d0fe5956ab to your computer and use it in GitHub Desktop.

Select an option

Save dmitriykovalev/4236142c98459baa4e54a1d0fe5956ab to your computer and use it in GitHub Desktop.

Quick Action: Play in mpv (macOS)

You need to have mpv installed. For example, you can run brew install mpv for that.

Run the built-in Automator app and create a new "Quick Action". Name it "Play in mpv" and set it up according to the screenshot below:

  • Workflow receives current files or folders in any application
  • Input is entire selection
  • Image ▶ Play
  • Color Black

Run Shell Script:

  • Shell: /bin/bash
  • Pass input: as arguments
  • PATH=$PATH:/opt/homebrew/bin/ /opt/homebrew/bin/mpv "$@" &> /dev/null || true

After that, you can easily play CUE sheet audio albums and other media files:

Finally, you can find the Quick Action file in ~/Library/Services/Play in mpv.workflow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment