This page is part of a static HTML representation of the TiddlyWiki at https://tiddlywiki.com/

Background Actions

12th February 2025 at 3:44pm

Background actions are performed whenever there are changes to the results of a filter.

They can be useful for hooking into existing functionality by tracking changes to the tiddler store.

The following example tracks changes to the story list, reusing itself as the text of a notification at the same time:

SampleBackgroundAction: Story Change

tags$:/tags/BackgroundAction
track-filter[list[$:/StoryList]]
<$action-sendmessage $message="tm-notify" $param="SampleBackgroundAction: Story Change" list={{$:/StoryList!!list}}/>

Story List:

<ol>
<$list filter="[enlist<list>]">
<li>
<$text text=<<currentTiddler>>/>
</li>
</$list>
</ol>