I reach my goal on the FLAC bits per sample and sample rate information. I am writing my experience as a tutorial for anyone need this type of Action.
First I tried the suggestions of @LyricsLover
%ARTIST%'-'%YEAR%'-'%ALBUM% '('$upper(%_extension%)')' '('%_samplerate%')'
:
Ahkmed-2009-Distance (FLAC) (44100)
%ARTIST%'-'%YEAR%'-'%ALBUM% '('$upper(%_extension%)')' '('%_bitrate%')' :
Ahkmed-2009-Distance (FLAC) ( 836)
%ARTIST%'-'%YEAR%'-'%ALBUM% '('$upper(%_extension%)')' '('%_bitspersample%')'
Ahkmed-2009-Distance (FLAC) (16)
SUCCESS for the bits per sample
As you can see in the above sample rate case it will write the long value of the sample rate as "44100" but what I want to write is "44". In the forum I have this code to obtain my purpose
$cutRight(%_samplerate%,3)$trimRight('.'$right(%_samplerate%,3),'.0')' kHz'
48000 ==> 48 kHz
44100 ==> 44.1 kHz
22050 ==> 22.05 kHz
12000 ==> 12 kHz
I used this value
%ARTIST%'-'%YEAR%'-'%ALBUM% '('$upper(%_extension%)')' '('%_bitspersample%'-'$cutRight(%_samplerate%,3)$trimRight('.'$right(%_samplerate%,3),'.0')' kHz'')'
then I get
Ahkmed-2009-Distance (FLAC) (16-44.1 kHz)
What I want to do is now delete the kHz section as given below
%ARTIST%'-'%YEAR%'-'%ALBUM% '('$upper(%_extension%)')' '('%_bitspersample%'-'$cutRight(%_samplerate%,3)$trimRight('.'$right(%_samplerate%,3),'.0')')'
Ahkmed-2009-Distance (FLAC) (16-44.1)
Maybe I need to modify the code to write just 44 instead of 44.1 for the sample rate.
%ARTIST%'-'%YEAR%'-'%ALBUM% '('$upper(%_extension%)')' '('%_bitspersample%'-'$cutRight(%_samplerate%,3)')'
Ahkmed-2009-Distance (FLAC) (16-44)