Skip to content

Instantly share code, notes, and snippets.

@MrCirdo
Created June 11, 2016 08:12
Show Gist options
  • Save MrCirdo/9bcf9146ba34ef8b08a185a88c398432 to your computer and use it in GitHub Desktop.
Save MrCirdo/9bcf9146ba34ef8b08a185a88c398432 to your computer and use it in GitHub Desktop.
Conversion de fichier vers mp3
set folders to (choose file multiple selections allowed 1)
repeat with thePath in folders
set thePathTerminal to quoted form of the POSIX path of thePath
set command to "/Applications/VLC.app/Contents/MacOS/VLC -I dummy " & thePathTerminal & " --sout=\"#transcode{acodec=mp3,vcodec=dummy}:standard{access=file,mux=raw,dst=" & text 1 thru -2 of thePathTerminal & ".mp3'}\" vlc://quit"
do shell script command
end repeat
display notification "Conversions terminées"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment