I see what you mean, It works in browser, but i can't get it to trigger 
from commandline.
I was unaware of the StartupAction tags, and so now i need to go read up 
more.



On Sunday, October 9, 2022 at 10:31:52 PM UTC-5 Eric Shulman wrote:

> Try this:
>
> 1) In your TiddlyWiki, create a new tiddler named "download", containing:
> ```
> \import $:/plugins/benwebber/dnd/ui/Buttons/export-player-edition
> <$list filter="[{$:/info/url/search}match[?download]]">
>    <<actions>>
> </$list>
> ```
> 2) tag this tiddler with `$:/tags/StartupAction/PostRender`
>
> Then, to trigger the action from a URI, add `?download` to the end of the 
> URI.  The result should be the same as using the "Export Player Edition" 
> button from the sidebar page controls.
>
> Note that I tested this by loading into a browser.  It might not work when 
> using wget, as "$:/tags/StartupAction/PostRender" is only triggered when 
> running in a browser.  I also tried "$:/tags/StartupAction", which should 
> work even without a browser (i.e., using wget), but it didn't seem to work 
> for my tests, and I'm not sure why.
>
> Let me know how it goes...
>
> -e
> On Sunday, October 9, 2022 at 7:22:14 PM UTC-7 [email protected] wrote:
>
>> I am using Ben Weber's DND campaign tools twiki (
>> https://benwebber.github.io/tiddlywiki-dnd/).
>> It has a feature to export a copy of the twiki that only include 
>> non-system tiddlers w/ the 'Public' tag.  Core to that feature is calling 
>> send-message 'tm-download-file'.
>>
>> I am looking for a way to automate this via a cron and wget.
>>
>> I've been looking but am at a loss of a way to trigger an action widget 
>> via direct URl call.
>>
>> Any suggestions would be most appreciated.
>>
>

-- 
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/f63b3dee-e0c6-4207-8a92-1cc02f71e102n%40googlegroups.com.

Reply via email to