This version is out of date, covering development from v9.5.0 to v9.7.3. It is maintained here only for inbound reference links from elsewhere. It is no longer actively updated.

Jump to the current version of aTbRef

Tinderbox v9 Icon

AutoFetch

If a note's $AutoFetch value is true, Tinderbox automatically updates the note's $Text to use data drawn from the source stored in the note's $URL. The latter may be any of:

The AutoFetch process facilitates automatically updating note $Text from other text sources. As well as the more obvious sources such as web pages or RSS feeds, AutoFetch works with a range of file types, including text, rtf, Microsoft Word®(.doc), pdf, and markdown (.md) files.

Once AutoFetch has run, the note containing the retrieved data also has its $ReadOnly attribute automatically set to true. This avoids the user trying to edit text that will get automatically overwritten when AutoFetch next runs.

Including the first setting of the process, when does AutoFetch run on a note and alter its $Text:

For deeper, more complex, be aware of the experimental attribute $RawData, which holds existing raw data (not post-processed) should the next planned fetch fail.

Post-processing AutoFetched data

It is possible to process imported data, before it is added to the note's $Text. This is done by setting valid action code in the same note's $AutoFetchCommand, whose operation is described separately in AutoFetch commands.