> 2) The code to select all "imported" tagged tiddlers and remove the
> "publish" tag works also work well, but has a timing issue.  The
> LoadTiddlers loadfile method works asynchronously, so the tag
> modification code runs before most of the tiddlers have been
> imported.  How can I get it to run when the load process is completed?
>
> So far I have avoided making any changes to any of the Core code, or
> that of any of the Plugins that I have used, but my only solution to
> 2) would involve hacking the LoadTiddlers plugin.

If you use the 'init' keyword param in the <<loadTiddlers>> macro,
then any tiddlers tagged with 'systemConfig' will be automatically
invoked when imported.  You can use this to trigger your tag
modification code, by putting it into a tiddler in the *source*
document.  After all the tiddlers have been imported, the
'systemConfig'-tagged tiddler that was just imported is invoked at the
end of the asynchronous <<loadTiddlers>> handling.

enjoy,
-e



imported
<<loadTiddlers .... init
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/tiddlywikidev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to