Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/mr-sunset/youtube-rip/llms.txt

Use this file to discover all available pages before exploring further.

Once you have Homebrew and yt-dlp installed, downloading a YouTube video as an MP3 takes less than a minute. This page walks you through your first run of YouTube Rip from opening the script to finding the finished file.

Download your first MP3

1

Open the script in Script Editor

Navigate to YouTube Rip.applescript in Finder and double-click it to open it in Script Editor. If you previously exported it as a .scpt or .app file, you can double-click that instead — a .app bundle will launch and run immediately without needing Script Editor at all.
2

Click the Run button

In the Script Editor toolbar, click the ▶ Run button (or press ⌘R). The script will start executing immediately — no configuration needed.
3

Enter a YouTube URL

A native macOS dialog will appear with the title YouTube Rip and the prompt:
Enter the video URL:
The input field is pre-filled with https://youtu.be/. Clear it and paste your YouTube URL — for example:
https://youtu.be/dQw4w9WgXcQ
Both full https://www.youtube.com/watch?v=... URLs and short https://youtu.be/... links are accepted by yt-dlp.
4

Click OK to start the download

Click OK. The dialog closes and yt-dlp begins running in the background. Depending on video length and your internet connection, this may take a few seconds to a minute. Script Editor will appear to be busy (the Stop button becomes active) while yt-dlp is working.
5

Review the result dialog

When yt-dlp finishes, a second dialog appears displaying the raw shell stdout from yt-dlp — exactly what yt-dlp printed to standard output during the download and conversion. Click OK to dismiss it.
6

Find your MP3 in Downloads

Open Finder and navigate to your Downloads folder (~/Downloads). You’ll find the newly created .mp3 file there, named after the original video title.

The yt-dlp command under the hood

When you click OK in the URL dialog, the script runs the following shell command:
do shell script "export PATH=\"/opt/homebrew/bin:/usr/local/bin:$PATH\"; yt-dlp -x --audio-format mp3 -P \"$HOME/Downloads\" --extractor-args \"youtube:player_client=default,-android_sdkless\" " & quoted form of givenUrl
The key flags are:
FlagPurpose
-xExtract audio only (no video)
--audio-format mp3Convert the extracted audio to MP3
-P "$HOME/Downloads"Save the file to your Downloads folder
--extractor-args "youtube:player_client=default,-android_sdkless"Selects the YouTube player client to avoid 403 errors
The URL is passed as quoted form of givenUrl — an AppleScript built-in that shell-escapes the string before it is handed to the shell. This prevents URLs containing special characters (such as & in query strings) from being misinterpreted by the shell.
The --extractor-args "youtube:player_client=default,-android_sdkless" flag tells yt-dlp which YouTube player client to use when fetching the video stream. Excluding the android_sdkless client works around a common class of 403 Forbidden errors that YouTube returns when that client is used.
The output filename is chosen automatically by yt-dlp based on the YouTube video’s title. You don’t need to specify a name — just check ~/Downloads after the result dialog closes and look for the most recently added .mp3 file.

Build docs developers (and LLMs) love