[TW5] Chrome solution and batch file request.

81 views
Skip to first unread message

CL

unread,
Mar 8, 2016, 4:36:46 AM3/8/16
to TiddlyWiki
I was thinking of Google Chrome saving solution and came up with idea.
Thanks to Eric Shulman that now I can save wiki files to each location using downloads routers
Example,
  • Whenever I save index.html, it goes to /download/index folder
  • Whenever I save empty.html, it goes to /download/empty folder

Now, all I need is single batch file that looks for latest created or modified file in that same folder level.

I wish I could code this, but unfortunately I am not a programmer.

Could anyone help me on this?


Best wishes,

CL

CL

unread,
Mar 8, 2016, 11:58:15 PM3/8/16
to tiddl...@googlegroups.com
Well, I couldn't make or find batch file but interestingly, I have found AutoHotKey code that works for me.
I was going to link the original page that I found the code. I could find similar codes like this and this, I just couldn't find the exact page. So, I am just posting the code. This code was the simplest version I could find, and the code looks fairly straightforward.

loop, C:\Users\Username\Directory\*.html

{

  if (A_LoopFileTimeModified > modtime)

  {

    modtime := A_LoopFileTimeModified

    file := A_LoopFileFullPath

  }

}

run, %file%


Basically, this code look for newest modified file in the folder declared in that first line.
In summary, you could use downloads router to sort into folders for each wiki files then, use this AutoHotkey script to lauch the newest file

BJ

unread,
Mar 9, 2016, 3:51:02 AM3/9/16
to TiddlyWiki
One problem with this is that if you install a plugin you will be prompted to reload your tiddlywiki from the current location, not the 'new version'

If you are happy to have all your tiddlywikis stored under the default download dir you could use this plugin:

https://chrome.google.com/webstore/detail/downloads-overwrite-exist/fkomnceojfhfkgjgcijfahmgeljomcfk?hl=en

this enables overwrites to the current tiddlywiki on save

cheers

BJ
Reply all
Reply to author
Forward
0 new messages