Hey, new to tiddlywikis, moderatley obsessed.

I have a wiki with some images in it which I'd like to externalize, so I'm 
looking at the instructions here --

https://tiddlywiki.com/#ExternalImages

and I'm not getting them to work.  What I've done --

create a wikifolder to work in.

tiddlywiki --load mywiki.html --savewikifolder folder

I wrote a shell script to run the commands, like this:

#!/bin/bash


tiddlywiki --savetiddlers '[is[image]]' images

tiddlywiki --setfield '[is[image]]' _canonical_uri 
'$:/core/templates/canonical-uri-external-image' text/plain

tiddlywiki --setfield '[is[image]]' text "" text/plain

tiddlywiki --rendertiddler '$:/core/save/all' externalimages.html text/plain


Figuring I'd need to quote some of those arguments so the shell wouldn't do 
anything funny with them.

I run it, and it does indeed create a folder named images/ full of images, 
but it does *not* set the _canonical_uri field of the images, and it does 
*not* erase the text field of those images (neither in the tiddlers 
directory, nor the output/externalimages.html file).  

Is there an issue with the way I'm doing it?  It's a pretty vanilla 
tiddlywiki. The fact that the first part worked fine (save the images) but 
the rest of it (convert to canonical_uri) didn't work at all confuses me.

(This is on OS X).

Thanks for any help!

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/f277539f-af4e-4dd6-a8aa-da8ff16a2ed9%40googlegroups.com.

Reply via email to