[script.javaScript.exception.notFunction]: ***** JavaScript exception (personalities 0.91): TypeError: system.systemNameForID is not a function
I had to change it to System.systemNameForID() to make it work. So, while we generally replace uppercases with lowercases, in this case I had to replace the lowercase with an uppercase.
Is this true for all static methods, because they are not applied to the specific current system, but to the general System object? (Sorry, I haven't yet gotten my head around the JS changes, therefore this may be the first in a series of dumb quiestions.)
If so, some small reminder on the Wiki page, just below the Static Methods headline would be nice, that starting from here uppercase System has to be used.
Yes, it is true for all static methods. Ahruman already announced that here some time ago. But I agree that for someone like me, who never looked at this in detail, the difference between singleton and constructor is not immediately noticed. Partly because the used syntax is similar. And when in both cases the starting character could be both lower and upper case, there is also no correction mechanism in place.
So, a lot of current work is affected by this difference.
I think most of we scripters have fallen over this one, although in my case it was more so with Manifest/manifest (although there were some System/system ones too).
But if you look at the wiki page, the static examples for System do list it with a capital letter. But I guess a note to say it twice will also not hurt.