Friday, November 17, 2017

#1 2014-03-05 05:44:18 pm

drmjdoyle
Member
Registered: 2009-01-17
Posts: 35

Bit Rate app

I wanted to make an app to display the bit rate of an audio file. I can get automator to pass the list of selected files. I can get the file name printed. I cannot get the bit rate or display it. I also would like to have a window pop up with the results. Not sure what to do there, haven't gotten that far.
Here is the script in the do shell script part:

#! /bin/bash
cat
for FILE1 in "$@"
    do
    FN="${FILE1##*\/}"   
    #echo $FILE1 | sed 's/^.*\//'
    BR=$(afinfo $FILE1 | grep "bit rate")
    echo -e $FN "\t" $BR
done

HELP please.

Offline

 

Board footer

Powered by FluxBB

RSS (new topics) RSS (active topics)