export tiddler automatically

69 views
Skip to first unread message

paulgilbert2000

unread,
Dec 29, 2021, 5:39:23 PM12/29/21
to TiddlyWiki
Hi ,

i know the answer is no , but will ask any ways .

Is there  way to export a particular tiddler automatically, so as in some scheduled task in the background, that lets say every 30 minutes would trigger a command to export a specific tiddler in a particular local

jaa...@gmail.com

unread,
Dec 29, 2021, 6:48:00 PM12/29/21
to TiddlyWiki
It would be cool if you could just ``crontab`` a wget to get the JSON:
```

Eric Shulman

unread,
Dec 30, 2021, 1:00:26 PM12/30/21
to TiddlyWiki
On Wednesday, December 29, 2021 at 2:39:23 PM UTC-8 Mohamed...@hotmail.com wrote:
Is there  way to export a particular tiddler automatically, so as in some scheduled task in the background, that lets say every 30 minutes would trigger a command to export a specific tiddler in a particular local

Displays a countdown timer in the SideBar that triggers a periodic "file save" and/or "export tiddlers" action.
Requires: TiddlyTools/Time/CountDownTiddlyTools/Time/TickerTiddlyTools/Time/action-timeout.js
Optional: TiddlyTools/Time/Setup$:/config/TiddlyTools/Time

Copy the above tiddlers into your document and then save-and-reload (so the action-timeout widget is defined).  The AutoSaver interface is automatically added to the Sidebar.

From the sidebar, press the AutoSaver "gear" button to open a settings popup.  Clear the "save the file" checkbox if you don't want to autosave the entire file and check the "export tiddlers" checkbox, then select the desired tiddler titles from the listbox (use ctrl-click and/or shift-click to select multiple tiddler titles).  The default output file will be named "tiddlers.json".

Press the "apply" button to set the countdown timer (default is 30 minutes).  When the timer reaches zero, you will be ask to confirm "OK to autosave?"  Then press "save" to initiate the "export tiddlers" action.

enjoy,

-e

Eric Shulman

unread,
Dec 30, 2021, 1:05:28 PM12/30/21
to TiddlyWiki
Addendum:
After you press "apply" to set the countdown timer, you will need to press "start" to actually start the countdown.
Note that after the autosave is triggered, the countdown timer automatically resets and starts counting down again.
You can press "pause" to suspend the current countdown, or "stop" to halt the countdown.

-e

paulgilbert2000

unread,
Dec 30, 2021, 7:45:06 PM12/30/21
to TiddlyWiki
Wow,

That was such a pleasant surprise , I was really not expecting this , it is exactly what i need :)

thank you very much Eric ,

Eric Shulman

unread,
Dec 30, 2021, 8:10:22 PM12/30/21
to TiddlyWiki
On Thursday, December 30, 2021 at 4:45:06 PM UTC-8 Mohamed...@hotmail.com wrote:
thank you very much Eric

I just posted an update to TiddlyTools/Time/AutoSaver:

* improved "settings" popup interface (better layout and "reset" handling for defaults)
* added startup() macro and $:/tags/StartupAction/Browser so countdown duration is initialized when file is loaded

Get the update here: TiddlyTools/Time/AutoSaver

-e

Eric Shulman

unread,
Dec 30, 2021, 10:20:06 PM12/30/21
to TiddlyWiki
Another update  to TiddlyTools/Time/AutoSaver...

added "export changes" setting and handler:
- saves all tiddlers that have changed since the TiddlyWiki was loaded, except for the following tiddlers:
`[prefix[$:/boot]] [[$:/build]] [[$:/core]] [[$:/HistoryList]] [[$:/Import]] [[$:/library/sjcl.js]] [[$:/StoryList]] [[$:/temp/info-plugin]] and [prefix[$:/temp/time]]`
- default filename/format is "changes.json"

Get the update here: TiddlyTools/Time/AutoSaver

-e
Reply all
Reply to author
Forward
0 new messages