Hi, I solved my problem a non TW way (couldn't figure out the javascript), but it works, so here it is for anyone who might also find it uselful.
Purpose: I wanted to be able to set a reminder without having to open up my main TW file, e.g. put down a reminder I thought of in the middle of doing a non-computer activity (but the computer is always on) All you have to do is have a tiddler that has your reminders in it, and at the end of the reminders put the word "remindermarker", then close the TW the following is an autohotkey script (that means this is windows only - sorry) that you can trigger with a hotkey (in this case control-win- r). You pick the day, month and year, then enter the reminder text, and press "insert reminder", and you're done. How it works: first, you have to have installed autohotkey from http://www.autohotkey.com/ and then copy the code below into a new ahk file, and run the file (i.e. put it in your startup folder - its quite small). What the script does is copy your TW file to a text variable, search for the word "remindermarker", and replace it with your new reminder (plus the word "remindermarker" - so you can repeat as needed) in the proper format. Use your own discretion, but if you have your backups turned on I can't see this backfireing too terribly :-). I used a copy of my TW until I got it working right. For your own use, just replace the word "tbGTD.html" with you own file name. Oh yeah, this script has to be in the same folder as your TW file to work. Enjoy! (hopefully google groups won't mangle the code) Dave #singleinstance force ; ; AutoHotkey Version: 1.x ; Language: English ; Platform: Win9x/NT ; Author: A.N.Other <[email protected]> ; ; Script Function: ; Template script (you can customize this template by editing "ShellNew \Template.ahk" in your Windows folder) ; #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. SendMode Input ; Recommended for new scripts due to its superior speed and reliability. SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory. Gui, Add, DropDownList, vDay, 1|2|3|4|5|6|7|8|9|10|11|12|13|14|15|16| 17|18|19|20|21|22|23|24|25|26|27|28|29|30|31 Gui, Add, DropDownList, vMonth, 1|2|3|4|5|6|7|8|9|10|11|12 Gui, Add, DropDownList, vYear, 2009|2010|2011|2012 ; add years as needed Gui, Add, Edit, vSubject w420, reminder here Gui, Add, Button, gInsertReminder default, Insert Reminder Gui, Add, Button, gExitThis, Cancel ^#r:: Gui, Show, x300 y300 , New TW reminder return InsertReminder: gui,Submit string1 =<<reminder day: string2 =month: string3 =year: string4 = title:" string5 =">> TheReminder =%string1%%Day% %string2%%Month% %string3%%Year% %string4% %Subject%%string5%`n remindermarker ;msgbox %TheReminder% FileRead, OldFile, tbGTD.html StringReplace, NewFile, OldFile, remindermarker, %TheReminder% filedelete, tbGTD.html fileappend, %NewFile%, tbGTD.html return ExitThis: ;msgbox %TheReminder% gui, hide return -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" 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/tiddlywiki?hl=en.

