I have been using filebot for a few years on windows and it's worked great.
I use a customer tag script of:
```
Format: Select all
{n} - {s00e00} - {t} ({vf}{' '}{ vc =~ /HEVC|265|HEVC MAIN 10/ ? ' X265' : ' h264'}{' ' + any{hdr}{'SDR'} + ' ' }
{
def best = any{audio.max{it.StreamSize.toInteger()}}{null};
def ChannelString = any{(best.'ChannelPositionsString2'.replaceAll(/Object\sBased\s\/|(\d+)?\sobjects\s\/|0.(?=\d.\d)/, '').split(' / ').collect{ it.split('/')*.toDouble().sum() }.max()).toString()}{null};
def audioCodec = (ac == 'MP3'|| ac == 'AAC'|| ac == 'EAC3') ? ac : any{best.FormatProfile ? (best.Codec+'.'+best.FormatProfile.replaceAll(/\s?\/.*/)) : null}{best.Codec}{aco}{(audio.Codec+'.'+audio.FormatProfile).join().replaceAll(/\s?\/.*/)}{ac}{'ERROR'};
allOf{audioCodec}{any{ChannelString}{channels}}.join(' ')
;
})
and again it's worked great.
Now I am switch over to macos. And i have copied it directly and it will not work.
The first line works great but the chunk that does the audio throws and error when I try to save the script of:
Code: Select all
Syntax Error: Unexpected character: '
'
Much thanks