I tried to write a litte console script, but I'm stuck...

var tids = 
$tw.wiki.filterTiddlers("[field:type[image/jpeg]!has[_canonical_uri]]"); 
$tw.utils.each(tids,function(t){ var tid = $tw.wiki.getTiddler(t); 
tid.fields.text = ""; tid.fields._canonical_uri = t; 
console.log(tid.fields._canonical_uri, "WHY undefined?!? Should be...", t); 
$tw.wiki.addTiddler(tid); })

Anyone able to tell me why I can't set a tiddler's field like that?

Best wishes, Tobias.

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.

Reply via email to