> Is there some way within a macro to get the name of the tiddler that
> is calling it? I wrote a little proof-of-concept macro and it fails
> with "tiddler is undefined" [...]

As stated in the original thread[1], I get the following error on the 
macro[2]:
      Error while executing macro <<tiddlerName>>:
      TypeError: tiddler.getAttribute is not a function

Either way, the macro is being passed a *store*[3] tiddler (JavaScript
object), not a *story*[4] tiddler (DOM element).
So instead of tiddler.getAttribute("tiddler"), simply use the title 
property (tiddler.title).
The best way to get a feel for this is to inspect the object with Firebug:
      console.log(tiddler);

HTH.


-- F.


[1] http://groups.google.com/group/TiddlyWiki/t/95fa1964f3fb4faf
[2] http://tiddlywiki.org/wiki/Troubleshooting
[3] http://tiddlywiki.org/wiki/Dev:TiddlyWiki
[4] http://tiddlywiki.org/wiki/Dev:Story

--~--~---------~--~----~------------~-------~--~----~
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