Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on run {input, parameters}
- if (count of input) is less than 3 then return input
- set ffmpeg to quoted form of first item of input
- set destinationFolder to quoted form of second item of input
- repeat with theFile in (items 3 thru -1 of input)
- do shell script "file=" & quoted form of theFile & ";" & ffmpeg & " -loglevel error -i \"$file\" -vn -acodec flac -y " & destinationFolder & "\"/${file##*/}.flac\""
- end repeat
- return input
- end run
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement