Macros have access to the tiddler variable:
http://tiddlywiki.org/wiki/Dev:Macros
If you're talking about using Eric's InlineJavaScriptPlugin, I think
that passes similar information - check the documentation perhaps?
-- F.
> Here is a proof-of-concept macro I wrote to see if I can get it working:
> [...]
> It errors-out with 'tiddler is undefined.
For me that results in the following error:
Error while executing macro <<tiddlerName>>:
TypeError: tiddler.getAttribute is not a function
Either way, the macro is being passed a *store* tiddler (JavaScript
object), not a *story* tiddler (DOM element).
The best way to get a feel for this is to inspect the object with Firebug:
console.log(tiddler);
HTH.
-- F.