Last Save Date macro?

35 views
Skip to first unread message

Mike Crowe

unread,
Aug 25, 2009, 9:16:05 AM8/25/09
to TiddlyWiki
Hey folks,

Anybody know of a way to get the last save date as a macro? I'd love
to have that in my subtitle.

Mike

Eric Shulman

unread,
Aug 25, 2009, 9:57:28 AM8/25/09
to TiddlyWiki
> Anybody know of a way to get the last save date as a macro?  I'd love
> to have that in my subtitle.

Here's three different plugins that will do the job:

http://www.TiddlyTools.com/#DatePlugin
<<date filedate "DDD, MMM DDth, YYYY at 0hh:0mm:0ss">>

http://www.TiddlyTools.com/#WikifyPlugin
<<wikify "%0" {{document.lastModified.toString();}}>>

http://www.TiddlyTools.com/#InlineJavascriptPlugin
<script> return document.lastModified.toString(); </script>

or, if you want to avoid installing additional plugins:
* create a tiddler called [[ShowValue]] containing just
"$1" (without quotes)
* <<tiddler ShowValue with: {{document.lastModified.toString();}}>>

enjoy,
-e
Eric Shulman
TiddlyTools / ELS Design Studios

Mike Crowe

unread,
Aug 25, 2009, 10:56:50 AM8/25/09
to TiddlyWiki
Eric, worked like a champ! Many thanks!

wolfgang

unread,
Aug 30, 2009, 8:52:04 AM8/30/09
to TiddlyWiki
> Anybody know of a way to get the last save date as a macro? I'd love
> to have that in my subtitle.
>

Also the little fileDate would show that:

http://knighjm.googlepages.com/knightnet-default-tw.html#fileDate

Regards..

AlanBCohen

unread,
Aug 30, 2009, 9:38:26 AM8/30/09
to TiddlyWiki
I also used Eric's Javascript in the top of my MainMenu. Here are the
first couple of lines:
<<tiddler name: DigitalClock>>
''MainMenu''
Last file update <script> return document.lastModified.toString(); </
script>

The MainMenu line enables me to rapidly get to an edit by displaying
the title as a clickable link. The only limitation I've found is that
the last update doesn't change (with AutoSave on) until you reload
the TW file even if you have the AutoRefresh script in the tiddler.
(Not a big deal)

MGT

unread,
Aug 31, 2009, 8:28:58 PM8/31/09
to TiddlyWiki
Does anyone know how to get around this limitation to allow the saved
date to dynamically update, so that it would update with AutoSave or
when the saved button is pressed, and not just when the document is
reloaded?

Cheers,

Mark
Reply all
Reply to author
Forward
0 new messages