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/05edc15d-6242-4ecd-acfe-356f7e70ce3en%40googlegroups.com.