AutoFetchCommand

Tinderbox Icon


Attribute Data Type:   string
Attribute Default Value:   (not set - empty string)
Atrribute Group:   Net
Atrribute Purpose:   Import processing
Attribute Inherited from Preferences?     No
Attribute Read-Only?   No

The attribute AutoFetchCommand extends AutoFetch with new capabilities.

If AutoFetchCommand is empty (the default), AutoFetch behaves as previously; the contents of the specified URL are stored in the note's text.

AutoFetchCommand is an action, and thus uses the same syntax as agent actions and rules. It runs when the file is loaded, exported, and possibly during idle period. Typically, AutoFetchCommand will invoke an outside program, perhaps fetching some information from the user's hard disk or network. For example:

$Text=`"ls ~/Documents"; 

$Text=runCommand("echo | ls ~"); 

will replace the text of the note with a list of all the files currently in the user's Documents folder.

Delivered=`"myDatabaseQuery $TrackingID"; 

will run the shell script myDatabaseQuery, passing it the value of the note's TrackingID attribute as an argument.


Possible relevant notes (via "Similar Notes" feature):

Up: System Attribute List
Previous: AutoFetch  Next: AutomaticIndent 

A Tinderbox Reference File : Attributes : System Attribute List : AutoFetchCommand

Quicklinks: Attributes | Action Codes | Export Codes | Designators | Date Formats | aTbRef Site Map

[Last updated: 16 May 2012, using v5.11.1]


Search:

Google search aTbRef for:  


Creative Commons Licence

aTbRef by Mark Anderson is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License.

[See aTbRef CC licence Attribution & Waiver info]

Made with Tinderbox