Hi folks,

As part of my work in designwritestudio.com I frequently want to download a 
tiddlywiki file, modify it, and share it. I'd rather not have to manually 
rename it, and am happy keeping the file name used by tiddlyspot (most of 
my students this semester are using Mat's fabulous 
tiddlywiki5.tiddlyspot.com tool to create tiddlywiki files, so the name in 
[[$:/UploadName]] is guaranteed to be unique).

I poked around a bit, and put something together (based on this 
<https://github.com/Jermolene/TiddlyWiki5/issues/1231#issuecomment-66998844>), 
which seems to work for my purposes, so I thought I'd share this with the 
group (for once: I am contributing! Not asking for help!)...

//steve.



\define download() $(file-name)$.html
<$vars file-name={{$:/UploadName}}>
<$button class="tc-btn-big-green">
<$action-sendmessage $message="tm-save-wiki" 
filename=<<download>>/>Download <<download>> to default save 
location</$button>


-- 
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 post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/3c5d095a-dbc4-4163-8b8e-b0488dcd86f0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to