Man it didn't worked when i just copied and pasted the code(of course, editing the string), but i've modified it like this:
local jar = peripheral.wrap("tilejar_48") --the string is the name the peripheral proxy returns
local aspects = jar.getAspects()
for i,v in pairs(aspects) do...