SHARE
TWEET

ExportMusic convert to flac

a guest May 31st, 2019 126 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. on run {input, parameters}
  2.     if (count of input) is less than 3 then return input
  3.    
  4.     set ffmpeg to quoted form of first item of input
  5.     set destinationFolder to quoted form of second item of input
  6.     repeat with theFile in (items 3 thru -1 of input)
  7.         do shell script "file=" & quoted form of theFile & ";" & ffmpeg & " -loglevel error -i \"$file\" -vn -acodec flac -y " & destinationFolder & "\"/${file##*/}.flac\""
  8.     end repeat
  9.     return input
  10. end run
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top