Re: Link to Outlook

2012-05-24 Thread Nol1968
Thanks
 
Will give it a try over the weekend
 
cheers
On Wednesday, May 23, 2012 9:56:46 AM UTC+2, cjparsons74 wrote:

 Here is a script I hacked together for my own use. If it gets messed 
 up by being e-mailed them send me a message and I'll send it as an 
 attachment. 

 # Script to import tasks from one folder within the Inbox tree in 
 Outlook 
 # (outlookExportFolder) and put them into mGSD. It is very crude and 
 only uses search 
 # and replace to modify the mGSD file. It makes a backup in a 
 directory 
 # (backupLocation), which must exist.  After the import it puts the 
 message in the 
 # folder named as outlookArchiveFolder 
 # 
 # The imported message is put into the Import context. 
 # 
 # Because it modifies the mGSD file directly you must Save (or close) 
 the mGSD page 
 # in your browser before running the script. 
 # 
 # You need to install Python 2.6 or 2.7 
 # http://www.activestate.com/activepython 
 # 
 # and the win32 extensions e.g. 
 # http://sourceforge.net/projects/pywin32/files/pywin32/Build%20217/ 
 # 
 # No warranty is supplied with this script. There is very little error 
 checking. It 
 # is probable that attempting to import some messages will corrupt 
 your mgsd file. 
 # (hence the backup). When trying it out you should work on a copy of 
 your real 
 # mGSD file. 
 # 
 # Works for me with Outlook 2003 and python 2.6.6 and e-mail message 
 items. 

 # Configuration parameters each user should change 
 # 
 # (C) Chris Parsons 2012. cjparsons1 at yahoo dot co dot uk This 
 script may be used in the course of commercial 
 # business, adapted and distributed providing licence remains intact. 

 backupLocation = rH:\twbackup 
 mgsdFile = rH:\mgsd.html 
 outlookExportFolder = rExport 
 outlookArchiveFolder = rKF2M 

 import os 
 import ctypes 
 import shutil 
 import codecs 
 import os.path 
 import win32com.client 
 import win32gui 
 from win32com.shell import shell, shellcon 
 from datetime import timedelta,datetime,date 
 import re 
 import string 
 import pywintypes 

 # Open outlook 
 oOutlook = 
 win32com.client.gencache.EnsureDispatch(Outlook.Application) 
 mapi = oOutlook.GetNamespace(MAPI) 
 inbox = mapi.GetDefaultFolder(6) #inbox 
 exportFolder = inbox.Folders.Item(outlookExportFolder) 
 kf2mFolder = inbox.Folders.Item(outlookArchiveFolder) 

 def ExportToMGSD(title=Unnamed Task,body=): 
# make bakcup 
dateString = datetime.now().strftime(%Y-%m-%d.%H.%M.%S.%f) 
backupFile = os.path.join(backupLocation, exportbackup.html + 
 .+dateString) 

shutil.copyfile(mgsdFile, backupFile) 

# place to insert new items 
patt = re.compile('(div title=InstantTimestampPlugin)') 

content =  
try: 
   with codecs.open(mgsdFile, 'r', 'utf-8') as f: 
  content = f.read() 
except IOError: 
   pass 

if len(content): 
   dateString = datetime.now().strftime(%Y%m%d%H%M) 
   content = patt.sub(r'div title=%s modifier=Import 
 created=%s modified=%s tags=Work Next Action Import 
 changecount=1pre%s/pre/div\n\1' % (title, dateString, 
 dateString, body), content, count=1) 
   with codecs.open(mgsdFile, 'w', 'utf-8') as f: 
  f.write(content) 
else: 
   ctypes.windll.user32.MessageBoxA(None, 'Could not open mgsd 
 file', 'Error', 0) 

 def ExportMsgToMGSD(msg): 
print msg.Subject 
ExportToMGSD(msg.Subject.strip(), msg.Body.strip()) 

 # For each message in the Export folder 
 lastSubject =  
 for i in range(len(exportFolder.Items)): 
# The message we want is always Item #1 because messages are bein 
 gmoved out of 
# the folder when we've dealt with them 
m = exportFolder.Items.Item(1) 
# Safety check that we're not in a cycle with the same message 
if m.Subject == lastSubject: 
   ctypes.windll.user32.MessageBoxA(None, 'Seem to be stuck on same 
 message', 'Error', 0) 
   break 
lastSubject = m.Subject 
ExportMsgToMGSD(m) 
m.Move(kf2mFolder) 



-- 
You received this message because you are subscribed to the Google Groups GTD 
TiddlyWiki group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/gtd-tiddlywiki/-/Q1pd3S39EYQJ.
To post to this group, send email to gtd-tiddlywiki@googlegroups.com.
To unsubscribe from this group, send email to 
gtd-tiddlywiki+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/gtd-tiddlywiki?hl=en.



[tw] On startup, display the next 7 days of journals

2012-05-24 Thread airman99
I am using TW as an appointment book, with one journal per day (e.g. 
2012-05-23). Upon startup, I would like TW to display the next 7 days of 
journal entries. For example, if today is 2012-05-23, I want TW to display 
the journals for 2012-05-23, 2012-05-24, 2012-05-25 ... 2012-05-29. I have 
searched in this group for a while and have not seen this request 
addressed. Have also looked through some of the major plugin sites with no 
progress. Any ideas would be appreciated.

-- 
You received this message because you are subscribed to the Google Groups 
TiddlyWiki group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/tiddlywiki/-/Sfv2IzxVzpMJ.
To post to this group, send email to tiddlywiki@googlegroups.com.
To unsubscribe from this group, send email to 
tiddlywiki+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en.



[tw] Re: On startup, display the next 7 days of journals

2012-05-24 Thread Eric Shulman


On May 23, 9:53 pm, airman99 airma...@gmail.com wrote:
 I am using TW as an appointment book, with one journal per day (e.g.
 2012-05-23). Upon startup, I would like TW to display the next 7 days of
 journal entries. For example, if today is 2012-05-23, I want TW to display
 the journals for 2012-05-23, 2012-05-24, 2012-05-25 ... 2012-05-29. I have
 searched in this group for a while and have not seen this request
 addressed. Have also looked through some of the major plugin sites with no
 progress. Any ideas would be appreciated.

The TWCore uses the contents of [[DefaultTiddlers]] to specify which
tiddlers will be shown at startup.  There is a shadow definition built
into the TWCore that automatically displays [[GettingStarted]] by
default.

Normally, you override the shadow definition by editing
[[DefaultTiddlers]] and entering a static list of tiddler titles to be
opened every time the document is loaded.  However, for your purposes,
you want to define a *variable* list of tiddlers that is automatically
generated based on the current date, rather than statically defined.

To do this, you can create a small custom plugin that overwrites the
TWCore default shadow definition for [[DefaultTiddlers]], like this:

//{{{
var out=;
var now=new Date().getTime(); // current time in msec
var day=8640; // one day in msec
for (var when=now; whennow+7*day; when+=day)
   out+=new Date(when).formatString([[-0MM-0DD]]\n);
config.shadowTiddlers[DefaultTiddlers]=out;
//}}}

Put the above code into a tiddler (e.g., [[SetDefaultTiddlers]]),
tagged with 'systemConfig'.  If a 'real' [[DefaultTiddlers]] already
exists in your document, delete it so that the shadow
[[DefaultTiddlers]] definition will be applied next time you startup.
Save-and-reload and you're done: the next 7 days of date-titled
tiddlers will be displayed each time you open your document.  QED.

enjoy,
-e
Eric Shulman
TiddlyTools / ELS Design Studios

WAS THIS ANSWER HELPFUL?  IF SO, PLEASE MAKE A DONATION
   http://www.TiddlyTools.com/#Donations

-- 
You received this message because you are subscribed to the Google Groups 
TiddlyWiki group.
To post to this group, send email to tiddlywiki@googlegroups.com.
To unsubscribe from this group, send email to 
tiddlywiki+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en.



[tw] Re: On startup, display the next 7 days of journals

2012-05-24 Thread airman99
Thanks Eric! This plugin does exactly what I needed.

Not knowing much about javascript, here are two closely related questions:

1. How would I go about creating a link ([[Weekly_Agenda]] for example) 
that would do the very same thing, (i.e. pull up a week's future agenda 
items starting today)? This way I could easily return to the agenda view 
without having to restart TW.

2. How would I make some fixed Tiddlers appear on the startup page in 
addition to the next week of journals?

TIA


On Wednesday, May 23, 2012 10:53:00 PM UTC-6, airman99 wrote:

 I am using TW as an appointment book, with one journal per day (e.g. 
 2012-05-23). Upon startup, I would like TW to display the next 7 days of 
 journal entries. For example, if today is 2012-05-23, I want TW to display 
 the journals for 2012-05-23, 2012-05-24, 2012-05-25 ... 2012-05-29. I have 
 searched in this group for a while and have not seen this request 
 addressed. Have also looked through some of the major plugin sites with no 
 progress. Any ideas would be appreciated.

-- 
You received this message because you are subscribed to the Google Groups 
TiddlyWiki group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/tiddlywiki/-/mlrV15poxjgJ.
To post to this group, send email to tiddlywiki@googlegroups.com.
To unsubscribe from this group, send email to 
tiddlywiki+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en.



[tw] Re: Please vote for a TiddlyWiki-powered innovation award!

2012-05-24 Thread dickon
Thanks Mario and Eric,

Only a few days left to vote now, so if any TW'ers who have 10 seconds to 
spare could spend them voting for a good cause and a Tiddlywiki cause, it 
would be great!

The voting link is: 
http://www.guardian.co.uk/innovation-nation-awards/innovation-nation-shortlist-collaboration

Dickon

On Sunday, May 20, 2012 10:16:28 AM UTC+1, PMario wrote:

 On May 20, 1:54 am, Eric Weir eew...@bellsouth.net wrote: 
  On May 19, 2012, at 6:54 PM, dickon wrote: 
  
   I am hoping to persuade tiddlywikists to go to the polls and vote for 
 the AMBIT Collaboration, which is shortlisted for a Guardian/VirginMedia 
 Innovation Award, a major UK award that would be an amazing boost for 
 this small charity-based project. 
  
  Done. Though I don't totally understand what you've done, I'm very 
 impressed what I do understand, e.g., making it possible for users to 
 localize the manuals. 

 The ambit space itself may contain more info. 

 http://ambit.tiddlyspace.com/#[[%2B%20Getting%20started]]%20[[AMBIT%3A%20an%20overview]]
  

 -m

-- 
You received this message because you are subscribed to the Google Groups 
TiddlyWiki group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/tiddlywiki/-/j7OQvbDZLUIJ.
To post to this group, send email to tiddlywiki@googlegroups.com.
To unsubscribe from this group, send email to 
tiddlywiki+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en.



Re: [tw] Re: On startup, display the next 7 days of journals

2012-05-24 Thread Eric Kort
Below is a plugin that I think will do what you asked (don't forget to tag
the tiddler you paste it into as systemConfig).  You can put a call to the
macro in a tiddler opened by default (I put mine in my Home tiddler, which
is on my DefaultTiddler list...putting the macro call in the DefaultTiddler
itself does not work for me). Like so:

GetJournals offset:0 count:7

That will open up the next 7 days worth of journal entries, starting from
today (offset=0).

Alternatively, if you provide a label argument, it will create  a button
instead:
GetJournals label:Open Calendar

If you, for example, put this in your MainMenu tiddler, you will then have
a button in your menu which you can click to (re)open the next 7 days of
journal tiddlers.

-Eric (K., not S.)

/***
!Code
***/
{{{
// create macro object
var journalMacros = config.macros.GetJournals = {
handler: function (place,macroName,params,wikifier,paramString,tiddler)
{
var
paramHash=paramString.parseParams('offset',null,true,false,false);
var offset=getParam(paramHash,'offset', 0);
var count=getParam(paramHash,'count', 1);
var label=getParam(paramHash,'label', undefined);
if(label) {
   var span = createTiddlyElement(place,span,null,this.className);
   createTiddlyButton(span,label,null,this.onClick);
} else {
   var limit = parseInt(count) + parseInt(offset);
   while (offset  limit) {
   story.displayTiddler(bottom,
journalMacros.getTitle(offset));
   offset++;
   }
   }
   },
   getTitle: function(offset) {
  offset = offset || 0;
  var today= new Date();
  var date = new Date(today.getTime() + (offset *  24 * 60 * 60 *
1000));
  var title = date.formatString(DD MMM, );
  return title;
   },
   onClick: function(ev) {
  var limit = 0;
  while (limit  7) {
  story.displayTiddler(bottom, journalMacros.getTitle(limit));
  limit++;
  }
   }
}
}}}


On Thu, May 24, 2012 at 9:12 AM, airman99 airma...@gmail.com wrote:

 Thanks Eric! This plugin does exactly what I needed.

 Not knowing much about javascript, here are two closely related questions:

 1. How would I go about creating a link ([[Weekly_Agenda]] for example)
 that would do the very same thing, (i.e. pull up a week's future agenda
 items starting today)? This way I could easily return to the agenda view
 without having to restart TW.

 2. How would I make some fixed Tiddlers appear on the startup page in
 addition to the next week of journals?

 TIA


 On Wednesday, May 23, 2012 10:53:00 PM UTC-6, airman99 wrote:

 I am using TW as an appointment book, with one journal per day (e.g.
 2012-05-23). Upon startup, I would like TW to display the next 7 days of
 journal entries. For example, if today is 2012-05-23, I want TW to display
 the journals for 2012-05-23, 2012-05-24, 2012-05-25 ... 2012-05-29. I have
 searched in this group for a while and have not seen this request
 addressed. Have also looked through some of the major plugin sites with no
 progress. Any ideas would be appreciated.

 --
 You received this message because you are subscribed to the Google Groups
 TiddlyWiki group.
 To view this discussion on the web visit
 https://groups.google.com/d/msg/tiddlywiki/-/mlrV15poxjgJ.
 To post to this group, send email to tiddlywiki@googlegroups.com.
 To unsubscribe from this group, send email to
 tiddlywiki+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/tiddlywiki?hl=en.


-- 
You received this message because you are subscribed to the Google Groups 
TiddlyWiki group.
To post to this group, send email to tiddlywiki@googlegroups.com.
To unsubscribe from this group, send email to 
tiddlywiki+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en.



[tw] Re: On startup, display the next 7 days of journals

2012-05-24 Thread airman99
Thanks for the script! It worked perfectly when called from a Tiddler, and 
worked for 7 days when called from a link (MainMenu). Can you modify the 
script so that when the label function is used, the count: and 
offset: parameters still work instead of hardcoding the label function 
with 7 days? I played around with it a bit, but my javascript prowess is 
borderline zero, and was unable to make the script do what I want.

Any ideas why when the plugin is called during startup from 
DefaultTiddlers, it just shows the text of DefaultTiddler instead of 
running the script? Maybe the default tiddlers get loaded before the 
scripts get loaded into memory?

TIA

On Wednesday, May 23, 2012 10:53:00 PM UTC-6, airman99 wrote:

 I am using TW as an appointment book, with one journal per day (e.g. 
 2012-05-23). Upon startup, I would like TW to display the next 7 days of 
 journal entries. For example, if today is 2012-05-23, I want TW to display 
 the journals for 2012-05-23, 2012-05-24, 2012-05-25 ... 2012-05-29. I have 
 searched in this group for a while and have not seen this request 
 addressed. Have also looked through some of the major plugin sites with no 
 progress. Any ideas would be appreciated.

-- 
You received this message because you are subscribed to the Google Groups 
TiddlyWiki group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/tiddlywiki/-/RG9CNz1wAAgJ.
To post to this group, send email to tiddlywiki@googlegroups.com.
To unsubscribe from this group, send email to 
tiddlywiki+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en.



Re: [tw] Re: On startup, display the next 7 days of journals

2012-05-24 Thread airman99
Thanks for the script! It worked perfectly when called from a Tiddler, and 
worked for 7 days when called from a link (MainMenu). Can you modify the 
script so that when the label function is used, the count: and 
offset: parameters still work instead of hardcoding the label function 
with 7 days? I played around with it a bit, but my javascript prowess is 
borderline zero, and was unable to make the script do what I want.

Any ideas why when the plugin is called during startup from 
DefaultTiddlers, it just shows the text of DefaultTiddler instead of 
running the script? Maybe the default tiddlers get loaded before the 
scripts get loaded into memory?

TIA

On Thursday, May 24, 2012 9:44:02 AM UTC-6, vaiek wrote:

 Below is a plugin that I think will do what you asked (don't forget to tag 
 the tiddler you paste it into as systemConfig).  You can put a call to the 
 macro in a tiddler opened by default (I put mine in my Home tiddler, which 
 is on my DefaultTiddler list...putting the macro call in the DefaultTiddler 
 itself does not work for me). Like so:
  
 GetJournals offset:0 count:7
  
 That will open up the next 7 days worth of journal entries, starting from 
 today (offset=0).
  
 Alternatively, if you provide a label argument, it will create  a button 
 instead:
 GetJournals label:Open Calendar
  
 If you, for example, put this in your MainMenu tiddler, you will then have 
 a button in your menu which you can click to (re)open the next 7 days of 
 journal tiddlers.
  
 -Eric (K., not S.)
  
 /***
 !Code
 ***/
 {{{
 // create macro object
 var journalMacros = config.macros.GetJournals = {
 handler: function 
 (place,macroName,params,wikifier,paramString,tiddler) {
 var 
 paramHash=paramString.parseParams('offset',null,true,false,false); 
 var offset=getParam(paramHash,'offset', 0); 
 var count=getParam(paramHash,'count', 1); 
 var label=getParam(paramHash,'label', undefined); 
 if(label) {
var span = 
 createTiddlyElement(place,span,null,this.className);
createTiddlyButton(span,label,null,this.onClick);
 } else {
var limit = parseInt(count) + parseInt(offset);
while (offset  limit) {
story.displayTiddler(bottom, 
 journalMacros.getTitle(offset));
offset++;
}
}
},
getTitle: function(offset) {
   offset = offset || 0;
   var today= new Date();
   var date = new Date(today.getTime() + (offset *  24 * 60 * 60 * 
 1000));
   var title = date.formatString(DD MMM, );
   return title;
},
onClick: function(ev) {
   var limit = 0;
   while (limit  7) {
   story.displayTiddler(bottom, journalMacros.getTitle(limit));
   limit++;
   }
}
 }
 }}}


 On Thu, May 24, 2012 at 9:12 AM, airman99 wrote:

 Thanks Eric! This plugin does exactly what I needed. 

 Not knowing much about javascript, here are two closely related 
 questions: 

 1. How would I go about creating a link ([[Weekly_Agenda]] for example) 
 that would do the very same thing, (i.e. pull up a week's future agenda 
 items starting today)? This way I could easily return to the agenda view 
 without having to restart TW.

 2. How would I make some fixed Tiddlers appear on the startup page in 
 addition to the next week of journals?

 TIA


 On Wednesday, May 23, 2012 10:53:00 PM UTC-6, airman99 wrote: 

 I am using TW as an appointment book, with one journal per day (e.g. 
 2012-05-23). Upon startup, I would like TW to display the next 7 days of 
 journal entries. For example, if today is 2012-05-23, I want TW to display 
 the journals for 2012-05-23, 2012-05-24, 2012-05-25 ... 2012-05-29. I have 
 searched in this group for a while and have not seen this request 
 addressed. Have also looked through some of the major plugin sites with no 
 progress. Any ideas would be appreciated.

  -- 
 You received this message because you are subscribed to the Google Groups 
 TiddlyWiki group.
 To view this discussion on the web visit 
 https://groups.google.com/d/msg/tiddlywiki/-/mlrV15poxjgJ.
 To post to this group, send email to tiddlywiki@googlegroups.com.
 To unsubscribe from this group, send email to 
 tiddlywiki+unsubscr...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/tiddlywiki?hl=en.




-- 
You received this message because you are subscribed to the Google Groups 
TiddlyWiki group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/tiddlywiki/-/ZEX3ZQ6Gf90J.
To post to this group, send email to tiddlywiki@googlegroups.com.
To unsubscribe from this group, send email to 
tiddlywiki+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en.



[tw] Re: On startup, display the next 7 days of journals

2012-05-24 Thread Eric Shulman
 1. How would I go about creating a link ([[Weekly_Agenda]] for example)
 that would do the very same thing, (i.e. pull up a week's future agenda
 items starting today)? This way I could easily return to the agenda view
 without having to restart TW.

If I understand correctly, you want to have a single link that opens
the same journal tiddlers as are currently listed in your
[[DefaultTiddlers]]... if so, then it's very easy:

Using embedded HTML:
   htmlnowiki
   a href=javascript:; onclick=
  story.closeAllTiddlers();
  story.displayDefaultTiddlers();
   Weekly Agenda/a
   /html

Using InlineJavascriptPlugin:
   script label=Weekly Agenda
  story.closeAllTiddlers();
  story.displayDefaultTiddlers();
   /script

 2. How would I make some fixed Tiddlers appear on the startup page in
 addition to the next week of journals?

In the script I provided, you can add text to the 'out' variable,
either before or after the auto-generated journal titles, like this:

//{{{
var out=SomeTiddler\nSomeOtherTiddler\n;  // tiddlers to show BEFORE
journals
var now=new Date().getTime(); // current time in msec
var day=8640; // one day in msec
for (var when=now; whennow+7*day; when+=day)
   out+=new Date(when).formatString([[-0MM-0DD]]\n);
out+=AnotherTiddler\nOneMoreTiddler\n; // tiddlers to show AFTER
journals
config.shadowTiddlers[DefaultTiddlers]=out;
//}}}

Note: if you want to *display* the output of this script embedded in a
tiddler, you can use InlineJavascript, like this:

script
   var out=...;
   ...
   return out;
/script

where the last line,
   config.shadowTiddlers[DefaultTiddlers]=out;
has been replaced by
   return out;

enjoy,
-e
Eric Shulman
TiddlyTools / ELS Design Studios

WAS THIS ANSWER HELPFUL?  IF SO, PLEASE MAKE A DONATION
   http://www.TiddlyTools.com/#Donations

-- 
You received this message because you are subscribed to the Google Groups 
TiddlyWiki group.
To post to this group, send email to tiddlywiki@googlegroups.com.
To unsubscribe from this group, send email to 
tiddlywiki+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en.



Re: [tw] Re: On startup, display the next 7 days of journals

2012-05-24 Thread Eric Kort
Below is the revised plugin that abides by the set values of offset and
count.  I will have to defer to the REAL Eric (Eric S) to answer the issue
about the plugin call not working inside of DefaultTiddlers.


/***
!Code
***/
{{{
// create macro object
var journalMacros = config.macros.GetJournals = {
handler: function (place,macroName,params,wikifier,paramString,tiddler)
{
var
paramHash=paramString.parseParams('offset',null,true,false,false);
var offset=getParam(paramHash,'offset', 0);
var count=getParam(paramHash,'count', 1);
var label=getParam(paramHash,'label', undefined);
if(label) {
   var span = createTiddlyElement(place,span,null,this.className);
createTiddlyButton(span,label,null, function(ev) {
   var limit = parseInt(count) + parseInt(offset) - 1;
  var i = 0;
  while (i  limit) {
 story.displayTiddler(bottom, journalMacros.getTitle(i));
  i++;
  }});
} else {
var limit = parseInt(count) + parseInt(offset) - 1;
   while (offset  limit) {
   story.displayTiddler(bottom,
journalMacros.getTitle(offset));
   offset++;
   }
   }
   },
   getTitle: function(offset) {
  offset = offset || 0;
  var today= new Date();
  var date = new Date(today.getTime() + (offset *  24 * 60 * 60 *
1000));
  var title = date.formatString(DD MMM, );
  return title;
   }
}
}}}
On Thu, May 24, 2012 at 1:20 PM, airman99 airma...@gmail.com wrote:

 Thanks for the script! It worked perfectly when called from a Tiddler, and
 worked for 7 days when called from a link (MainMenu). Can you modify the
 script so that when the label function is used, the count: and
 offset: parameters still work instead of hardcoding the label function
 with 7 days? I played around with it a bit, but my javascript prowess is
 borderline zero, and was unable to make the script do what I want.

 Any ideas why when the plugin is called during startup from
 DefaultTiddlers, it just shows the text of DefaultTiddler instead of
 running the script? Maybe the default tiddlers get loaded before the
 scripts get loaded into memory?

 TIA

 On Wednesday, May 23, 2012 10:53:00 PM UTC-6, airman99 wrote:

 I am using TW as an appointment book, with one journal per day (e.g.
 2012-05-23). Upon startup, I would like TW to display the next 7 days of
 journal entries. For example, if today is 2012-05-23, I want TW to display
 the journals for 2012-05-23, 2012-05-24, 2012-05-25 ... 2012-05-29. I have
 searched in this group for a while and have not seen this request
 addressed. Have also looked through some of the major plugin sites with no
 progress. Any ideas would be appreciated.

 --
 You received this message because you are subscribed to the Google Groups
 TiddlyWiki group.
 To view this discussion on the web visit
 https://groups.google.com/d/msg/tiddlywiki/-/RG9CNz1wAAgJ.

 To post to this group, send email to tiddlywiki@googlegroups.com.
 To unsubscribe from this group, send email to
 tiddlywiki+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/tiddlywiki?hl=en.


-- 
You received this message because you are subscribed to the Google Groups 
TiddlyWiki group.
To post to this group, send email to tiddlywiki@googlegroups.com.
To unsubscribe from this group, send email to 
tiddlywiki+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en.



[tw] Re: On startup, display the next 7 days of journals

2012-05-24 Thread Eric Shulman
 I will have to defer to the REAL Eric (Eric S) to answer the issue
 about the plugin call not working inside of DefaultTiddlers.

The *stored contents* of [[DefaultTiddlers]] is used as data by TWCore
functions, without any 'wikify' processing.  However, even if it was
processed, TW macros cannot be used to generate dynamic *data* because
they don't output TW 'source' syntax... rather, they generate DOM
elements directly into the browser's rendered display.

The only syntax recognized within [[DefaultTiddlers]] are:
  * tiddler links, with double square-brackets if needed (e.g.
[[SomeTitle]])
  * filters (e.g., [tag[sometag]])

-e

-- 
You received this message because you are subscribed to the Google Groups 
TiddlyWiki group.
To post to this group, send email to tiddlywiki@googlegroups.com.
To unsubscribe from this group, send email to 
tiddlywiki+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en.



Re: [tw] Re: Please vote for a TiddlyWiki-powered innovation award!

2012-05-24 Thread Alex Hough
done too  all the best

alex

On 20 May 2012 10:16, PMario pmari...@gmail.com wrote:
 On May 20, 1:54 am, Eric Weir eew...@bellsouth.net wrote:
 On May 19, 2012, at 6:54 PM, dickon wrote:

  I am hoping to persuade tiddlywikists to go to the polls and vote for
the AMBIT Collaboration, which is shortlisted for a Guardian/VirginMedia
Innovation Award, a major UK award that would be an amazing boost for
this small charity-based project...

 Done. Though I don't totally understand what you've done, I'm very
impressed what I do understand, e.g., making it possible for users to
localize the manuals.

 The ambit space itself may contain more info.

http://ambit.tiddlyspace.com/#[[%2B%20Getting%20started]]%20[[AMBIT%3A%20an%20overview]]

 -m

 --
 You received this message because you are subscribed to the Google Groups
TiddlyWiki group.
 To post to this group, send email to tiddlywiki@googlegroups.com.
 To unsubscribe from this group, send email to
tiddlywiki+unsubscr...@googlegroups.com.
 For more options, visit this group at
http://groups.google.com/group/tiddlywiki?hl=en.


-- 
You received this message because you are subscribed to the Google Groups 
TiddlyWiki group.
To post to this group, send email to tiddlywiki@googlegroups.com.
To unsubscribe from this group, send email to 
tiddlywiki+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en.



[tw] Re: How to make the main tiddlywiki file saved message disappear without closing it

2012-05-24 Thread David Gifford
Thanks to you both!

Dave

On May 21, 5:01 pm, Eric Shulman elsdes...@gmail.com wrote:
  I would really like the main tiddlywiki file saved to appear briefly
  then disappear. Since I use a thinner header, and also toggle my
  rightsidebar, the message gets in the way of the tiddler 'close'
  'delete' and 'edit' links. So I spend needless time closing it over
  and over again in order to access those.

 Try this:
    http://www.TiddlyTools.com/#MessageLogPlugin(v1.2)

 Features include:
    * save messages in [[MessageLog]] shadow tiddler
    * fade message display after N seconds (new feature added in
 response to this thread!)
    * hide all messages (when logging is enabled)

 Note: By default, the MessageLog is a shadow tiddler, so the saved
 messages are only temporarily stored during the current session and
 are not automatically saved with your document, unless, of course you
 edit the MessageLog, which would make it a real tiddler which will
 be saved as usual, allowing you to keep a persistent cumulative record
 of previous messages.

 enjoy,
 -e
 Eric Shulman
 TiddlyTools / ELS Design Studios

 
 WAS THIS ANSWER HELPFUL?  IF SO, PLEASE MAKE A DONATION
    http://www.TiddlyTools.com/#Donations
 note: donations are directly used to pay for food, rent,
 gas, net connection, etc., so please give generously and often!

 Professional TiddlyWiki Consulting Services...
 Analysis, Design, and Custom Solutions:
    http://www.TiddlyTools.com/#Contact

-- 
You received this message because you are subscribed to the Google Groups 
TiddlyWiki group.
To post to this group, send email to tiddlywiki@googlegroups.com.
To unsubscribe from this group, send email to 
tiddlywiki+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en.