I have managed do it with cells styles.
I guess thats the way to go even though its more time consuming since i'll need to create cell styles.
Bu I'm still looking for more elegant solution with paragraph styles if its possible.
@mrfsrf5 – it seems, at least for my German inDesign CS5.5, "[Fusnota]" is NO valid name for a paragraph style.
However "Fusnota", without the brackets, would work.
Names in brackets  are reserved to generic objects like [Einf. Abs.] (German InDesign) =>[Basic Paragraph] (English InDesign).
Or reserved swatch names like [Black]…
If you use "Fusnota" instead of "[Fusnota]" and you provide a paragraph style named accordingly your script snippet will work…
Since i cant find javscript reference for indesign and I'm pretty new to this, it's not strange I made that kind of mistake
@mrfsrf5 – hm, what is not clear to me:
is your paragraph style name "Fusnota" or did you manage somehow to sneak in a paragraph style named "[Fusnota]" ? At least in the normal UI you cannot generate a name like that.
And for reference of the DOM see the following source:
Oh, and one thing for posting code here in the forums. At the top right corner of the edit field, there is a "Use advanced editor" button:
Highlight your code with " >> / Syntax Highlighting / Java" for better readability:
hey, thx for the tip and link!
Good, that your snippet is working as intended…
So, I would suggest, that you mark my answer in #2 as "Correct Answer" or at least as "Helpful Answer".
Just to indicate for others, that the issue is solved…