Page 1 of 1
Can't use upper() method on audio.language
Posted: 16 Jun 2017, 16:20
by namron
Hi,
when I try to capitalize the audio language in the filename like {audio.language.upper()}, I get:
Is this a bug or do I have to solve this another way?
Norman
Re: Can't use upper() method on audio.language
Posted: 16 Jun 2017, 16:51
by kim
try {audio.language.join().upper()} or {audio.language.toString().upper()} or {audio.language[0].upper()}
Re: Can't use upper() method on audio.language
Posted: 16 Jun 2017, 17:05
by rednoah
I think you're looking for this:
The Groovy manual will tell you why
. works only for properties and why
*. works for methods and properties.
Re: Can't use upper() method on audio.language
Posted: 16 Jun 2017, 17:30
by namron
kim wrote: ↑16 Jun 2017, 16:51
try {audio.language.join().upper()} or {audio.language.toString().upper()} or {audio.language[0].upper()}
Ok, so audio.language is an array.
Works as want it to with
{audio.language[0].upper()}.
Thanks