Advertisement
Guest User

ExportMusic convert to flac

a guest
May 31st, 2019
201
0
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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement