[tw] Re: [TWC] new tiddlers creation from type list

2014-06-15 Thread julien23
Hi All

It finally works with

[[FetNewHere]]

forEachTiddler
where
'tiddler.tags.contains(twTypes)' 
   write 
 ' newJournal title:$1__0MM_0DD_0hh_0mm_0ss focus:%22title%22 text:{{
store.getTiddlerText(\+tiddler.title+Template\)}} label:
+tiddler.title+ [[+tiddler.title+]] [[$1]]\\'
  begin
 'new...'


Thank you Eric a lot !

I just need to have autorefresh(1) to works and I could spread my 
newTypeHereToolbar to all my projects.
Looking forward to it !

Julien

1 : https://groups.google.com/d/topic/tiddlywiki/9xCyJdh9cVc/discussion


On Saturday, June 14, 2014 3:19:33 PM UTC+2, Eric Shulman wrote:

 On Saturday, June 14, 2014 2:57:03 AM UTC-7, julien23 wrote:

 I have already tried
 ...Template%22)}}
 according to whatever's saying but I get the red

 new... Error in macro newJournal Error in macro newJournal Error 
 in macro newJournal Error in macro newJournal Error in macro 
 newJournal Error in macro newJournal Error in macro 
 newJournal

 click on the red text to show a popup with the actual error message 
 returned by the macro.  This may provide the clue to what is wrong.

 Note: it's possible that using %22 in the ForEachTiddler context may not 
 be correct.  Try using \ (backslash-doublequote) instead.

 -e



-- 
You received this message because you are subscribed to the Google Groups 
TiddlyWiki group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: [TWC] new tiddlers creation from type list

2014-06-14 Thread julien bouchez
Hi all

I made the title space free and removed unecessary %22 at the end

forEachTiddler
where
'tiddler.tags.contains(twTypes)' 
   write 
 ' newJournal title:$1__0MM_0DD_0hh_0mm_0ss focus:%22title%22 text:{{
store.getTiddlerText(%22+tiddler.title+Template%22)/}/} label:
+tiddler.title+ [[+tiddler.title+]] [[$1]]\\'
  begin
 'new...'


I get something cleaner than previously :

title :
testTiddler_2014_06_14_09_07_52

tags
Constants testTiddler

text
{{store.getTiddlerText(ConstantsTemplate)/}/}

I am allmost there... I just can't figure out how to have this store to 
work.

Anyone ?

Regards

Julien


On Friday, June 13, 2014 10:51:37 PM UTC+2, julien bouchez wrote:

 ...still have a problem ...

 it makes tiddlers like this : Constants @ testTiddler

 title
 %22testTiddler

 tags
 _0MM_0DD_0hh_0mm_0ss%22 Constants testTiddler %22

 text
 {{store.getTiddlerText(ConstantsTemplate)/}/}

 ... still looking at it




 On Friday, June 13, 2014 9:54:33 PM UTC+2, julien bouchez wrote:

 Hi all

 mistake at the end :

 \\'

 would work fine

 Thank you all

 Julien

 On Friday, June 13, 2014 9:46:50 PM UTC+2, julien bouchez wrote:

 Eric,

 thank you for the  = %22  I knew I was messing with double quote but 
 did no know how to google for equivalence...

 in [[testTiddled]] I get :

 newJournal title:%22testTiddler _0MM_0DD_0hh_0mm_0ss%22 
 focus:%22title%22 text:store.getTiddlerText(%22CompanyTemplate%22)/}/} 
 label:%22Company Company testTiddler%22// newJournal 
 title:%22testTiddler _0MM_0DD_0hh_0mm_0ss%22 focus:%22title%22 
 text:store.getTiddlerText(%22ConstantsTemplate%22)/}/} label:%22Constants 
 Constants testTiddler%22// newJournal title:%22testTiddler 
 _0MM_0DD_0hh_0mm_0ss%22 focus:%22title%22 
 text:store.getTiddlerText(%22PartsTemplate%22)/}/} label:%22Parts Parts 
 testTiddler%22// newJournal title:%22testTiddler 
 _0MM_0DD_0hh_0mm_0ss%22 focus:%22title%22 
 text:store.getTiddlerText(%22PeopleTemplate%22)/}/} label:%22People 
 People testTiddler%22// newJournal title:%22testTiddler 
 _0MM_0DD_0hh_0mm_0ss%22 focus:%22title%22 
 text:store.getTiddlerText(%22PlanningTemplate%22)/}/} label:%22Planning 
 Planning testTiddler%22// newJournal title:%22testTiddler 
 _0MM_0DD_0hh_0mm_0ss%22 focus:%22title%22 
 text:store.getTiddlerText(%22QuotationsTemplate%22)/}/} label:%22Quotations 
 Quotations testTiddler%22//

 I don't know why it does not start the newJournal macro...


 On Friday, June 13, 2014 8:11:58 PM UTC+2, Eric Shulman wrote:

 On Friday, June 13, 2014 10:41:56 AM UTC-7, julien bouchez wrote:

 [[FetNewHere]]
 forEachTiddler
  where
  'tiddler.tags.contains(twTypes)' 
  write 
  ' newJournal title:$1 _0MM_0DD_0hh_0mm_0ss focus:title 
 text:{{store.getTiddlerText(+tiddler.title+Template)/}/}
 label:+tiddler.title+ [[+tiddler.title+]] [[$2]]//'
 
 I don't manage to have this last piece of code working.
 Could you please help me ?


 Your use of double-quotes is the problem.  ForEachTiddler clauses (such 
 as the write) clause, use single-quotes to surround the entire clause 
 and 
 double-quotes to construct the string expression within that clause. 
  However, the string expression you are using contains TW macro syntax 
 which uses double-quotes around it's parameters.  Unfortunately, you can't 
 nest the double-quotes... so the first double-quote in your macro syntax 
 ENDS the ForEachTiddler string expression, rather than being literal 
 quotes 
 in the output.

 One way to avoid this is to use the javascript hex code for the 
 literal quote characters: %22

 forEachTiddler
  where
  'tiddler.tags.contains(twTypes)' 
  write 
  ' newJournal title:%22$1 _0MM_0DD_0hh_0mm_0ss%22 focus:%22title%22 
 text:{{store.getTiddlerText(%22+tiddler.title+Template%22)/}/}
 label:%22+tiddler.title+ [[+tiddler.title+]] [[$2]]%22//'
 

 Let me know how it goes...

 enjoy,
 -e
 Eric Shulman
 TiddlyTools / ELS Design Studios

 YOUR DONATIONS ARE VERY IMPORTANT!
 HELP ME TO HELP YOU - MAKE A CONTRIBUTION TO MY TIP JAR...
http://TiddlyTools.github.com/fundraising.html#MakeADonation

 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 unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: [TWC] new tiddlers creation from type list

2014-06-14 Thread Eric Shulman


 text
 {{store.getTiddlerText(ConstantsTemplate)/}/}

 I am allmost there... I just can't figure out how to have this store to 
 work.


Try changing /}/} to just }}

-e

-- 
You received this message because you are subscribed to the Google Groups 
TiddlyWiki group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: [TWC] new tiddlers creation from type list

2014-06-14 Thread julien23
Hi Eric

I have already tried
...Template%22)}}
according to whatever's saying but I get the red

new... Error in macro newJournal Error in macro newJournal Error in 
macro newJournal Error in macro newJournal Error in macro 
newJournal Error in macro newJournal Error in macro newJournal

...Template%22)\}\}
does not make it any better

On Saturday, June 14, 2014 10:34:18 AM UTC+2, Eric Shulman wrote:

 text
 {{store.getTiddlerText(ConstantsTemplate)/}/}

 I am allmost there... I just can't figure out how to have this store to 
 work.


 Try changing /}/} to just }}

 -e


-- 
You received this message because you are subscribed to the Google Groups 
TiddlyWiki group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: [TWC] new tiddlers creation from type list

2014-06-14 Thread Eric Shulman
On Saturday, June 14, 2014 2:57:03 AM UTC-7, julien23 wrote:

 I have already tried
 ...Template%22)}}
 according to whatever's saying but I get the red

 new... Error in macro newJournal Error in macro newJournal Error 
 in macro newJournal Error in macro newJournal Error in macro 
 newJournal Error in macro newJournal Error in macro newJournal

 click on the red text to show a popup with the actual error message 
returned by the macro.  This may provide the clue to what is wrong.

Note: it's possible that using %22 in the ForEachTiddler context may not be 
correct.  Try using \ (backslash-doublequote) instead.

-e

-- 
You received this message because you are subscribed to the Google Groups 
TiddlyWiki group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: [TWC] new tiddlers creation from type list

2014-06-13 Thread Eric Shulman
On Friday, June 13, 2014 10:41:56 AM UTC-7, julien bouchez wrote:

 [[FetNewHere]]
 forEachTiddler
  where
  'tiddler.tags.contains(twTypes)' 
  write 
  ' newJournal title:$1 _0MM_0DD_0hh_0mm_0ss focus:title 
 text:{{store.getTiddlerText(+tiddler.title+Template)/}/}
 label:+tiddler.title+ [[+tiddler.title+]] [[$2]]//'
 
 I don't manage to have this last piece of code working.
 Could you please help me ?


Your use of double-quotes is the problem.  ForEachTiddler clauses (such as 
the write) clause, use single-quotes to surround the entire clause and 
double-quotes to construct the string expression within that clause. 
 However, the string expression you are using contains TW macro syntax 
which uses double-quotes around it's parameters.  Unfortunately, you can't 
nest the double-quotes... so the first double-quote in your macro syntax 
ENDS the ForEachTiddler string expression, rather than being literal quotes 
in the output.

One way to avoid this is to use the javascript hex code for the literal 
quote characters: %22

forEachTiddler
 where
 'tiddler.tags.contains(twTypes)' 
 write 
 ' newJournal title:%22$1 _0MM_0DD_0hh_0mm_0ss%22 focus:%22title%22 
text:{{store.getTiddlerText(%22+tiddler.title+Template%22)/}/}
label:%22+tiddler.title+ [[+tiddler.title+]] [[$2]]%22//'


Let me know how it goes...

enjoy,
-e
Eric Shulman
TiddlyTools / ELS Design Studios

YOUR DONATIONS ARE VERY IMPORTANT!
HELP ME TO HELP YOU - MAKE A CONTRIBUTION TO MY TIP JAR...
   http://TiddlyTools.github.com/fundraising.html#MakeADonation

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 unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: [TWC] new tiddlers creation from type list

2014-06-13 Thread whatever
Hey!

For one, you need to escape the literal quotation marks inside fET:
'newJournal title:\$1 _0MM_0DD_0hh_0mm_0ss\ focus:\title\ 
text:{{store.getTiddlerText(\+tiddler.title+\)}}
label:\+tiddler.title+\ [[+tiddler.title+]] [[$2]]//'

I left out the Template bit at the end, not sure if it's needed.

w

On Friday, June 13, 2014 7:41:56 PM UTC+2, julien bouchez wrote:

 Hi all

 My tw has several twTypes :

 Constants
 Companies
 People
 Parts
 ...

 each type has a twTemplate

 ConstantsTemplate
 CompaniesTemplate
 PeopleTemplate
 PartsTemplate
 ...

 I am trying to make a list to trigger new tiddler creation from every 
 tiddlers

 [[ViewTemplate]]

 div class='title' macro='view title'/div
 div class='toolbar' macro='toolbar [[ToolbarCommands::ViewToolbar]]'/div
 div class='newTypeHere' macro='tiddler FetNewHere 
 with:{{tiddler.title}}'/div
 div class='thumbnails' macro='tiddler FetThumbnails thumbnails 
 with:{{tiddler.title}}'/div
 div class='viewer' macro='view text wikified'/div
 div class='filesCabinet' macro='tiddler FetFiles 
 with:{{tiddler.title}}'/div
 div class='tagClear'/div

 [[FetNewHere]]
 forEachTiddler
  where
  'tiddler.tags.contains(twTypes)' 
  write 
  ' newJournal title:$1 _0MM_0DD_0hh_0mm_0ss focus:title 
 text:{{store.getTiddlerText(+tiddler.title+Template)/}/}
 label:+tiddler.title+ [[+tiddler.title+]] [[$2]]//'
 

 I don't manage to have this last piece of code working.

 Could you please help me ?

 Regards

 Julien








-- 
You received this message because you are subscribed to the Google Groups 
TiddlyWiki group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: [TWC] new tiddlers creation from type list

2014-06-13 Thread julien bouchez
Eric,

thank you for the  = %22  I knew I was messing with double quote but did 
no know how to google for equivalence...

in [[testTiddled]] I get :

newJournal title:%22testTiddler _0MM_0DD_0hh_0mm_0ss%22 
focus:%22title%22 text:store.getTiddlerText(%22CompanyTemplate%22)/}/} 
label:%22Company Company testTiddler%22// newJournal title:%22testTiddler 
_0MM_0DD_0hh_0mm_0ss%22 focus:%22title%22 
text:store.getTiddlerText(%22ConstantsTemplate%22)/}/} label:%22Constants 
Constants testTiddler%22// newJournal title:%22testTiddler 
_0MM_0DD_0hh_0mm_0ss%22 focus:%22title%22 
text:store.getTiddlerText(%22PartsTemplate%22)/}/} label:%22Parts Parts 
testTiddler%22// newJournal title:%22testTiddler _0MM_0DD_0hh_0mm_0ss%22 
focus:%22title%22 text:store.getTiddlerText(%22PeopleTemplate%22)/}/} 
label:%22People People testTiddler%22// newJournal title:%22testTiddler 
_0MM_0DD_0hh_0mm_0ss%22 focus:%22title%22 
text:store.getTiddlerText(%22PlanningTemplate%22)/}/} label:%22Planning 
Planning testTiddler%22// newJournal title:%22testTiddler 
_0MM_0DD_0hh_0mm_0ss%22 focus:%22title%22 
text:store.getTiddlerText(%22QuotationsTemplate%22)/}/} label:%22Quotations 
Quotations testTiddler%22//

I don't know why it does not start the newJournal macro...


On Friday, June 13, 2014 8:11:58 PM UTC+2, Eric Shulman wrote:

 On Friday, June 13, 2014 10:41:56 AM UTC-7, julien bouchez wrote:

 [[FetNewHere]]
 forEachTiddler
  where
  'tiddler.tags.contains(twTypes)' 
  write 
  ' newJournal title:$1 _0MM_0DD_0hh_0mm_0ss focus:title 
 text:{{store.getTiddlerText(+tiddler.title+Template)/}/}
 label:+tiddler.title+ [[+tiddler.title+]] [[$2]]//'
 
 I don't manage to have this last piece of code working.
 Could you please help me ?


 Your use of double-quotes is the problem.  ForEachTiddler clauses (such as 
 the write) clause, use single-quotes to surround the entire clause and 
 double-quotes to construct the string expression within that clause. 
  However, the string expression you are using contains TW macro syntax 
 which uses double-quotes around it's parameters.  Unfortunately, you can't 
 nest the double-quotes... so the first double-quote in your macro syntax 
 ENDS the ForEachTiddler string expression, rather than being literal quotes 
 in the output.

 One way to avoid this is to use the javascript hex code for the literal 
 quote characters: %22

 forEachTiddler
  where
  'tiddler.tags.contains(twTypes)' 
  write 
  ' newJournal title:%22$1 _0MM_0DD_0hh_0mm_0ss%22 focus:%22title%22 
 text:{{store.getTiddlerText(%22+tiddler.title+Template%22)/}/}
 label:%22+tiddler.title+ [[+tiddler.title+]] [[$2]]%22//'
 

 Let me know how it goes...

 enjoy,
 -e
 Eric Shulman
 TiddlyTools / ELS Design Studios

 YOUR DONATIONS ARE VERY IMPORTANT!
 HELP ME TO HELP YOU - MAKE A CONTRIBUTION TO MY TIP JAR...
http://TiddlyTools.github.com/fundraising.html#MakeADonation

 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 unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: [TWC] new tiddlers creation from type list

2014-06-13 Thread julien bouchez
Hi all

mistake at the end :

\\'

would work fine

Thank you all

Julien

On Friday, June 13, 2014 9:46:50 PM UTC+2, julien bouchez wrote:

 Eric,

 thank you for the  = %22  I knew I was messing with double quote but did 
 no know how to google for equivalence...

 in [[testTiddled]] I get :

 newJournal title:%22testTiddler _0MM_0DD_0hh_0mm_0ss%22 
 focus:%22title%22 text:store.getTiddlerText(%22CompanyTemplate%22)/}/} 
 label:%22Company Company testTiddler%22// newJournal 
 title:%22testTiddler _0MM_0DD_0hh_0mm_0ss%22 focus:%22title%22 
 text:store.getTiddlerText(%22ConstantsTemplate%22)/}/} label:%22Constants 
 Constants testTiddler%22// newJournal title:%22testTiddler 
 _0MM_0DD_0hh_0mm_0ss%22 focus:%22title%22 
 text:store.getTiddlerText(%22PartsTemplate%22)/}/} label:%22Parts Parts 
 testTiddler%22// newJournal title:%22testTiddler 
 _0MM_0DD_0hh_0mm_0ss%22 focus:%22title%22 
 text:store.getTiddlerText(%22PeopleTemplate%22)/}/} label:%22People People 
 testTiddler%22// newJournal title:%22testTiddler 
 _0MM_0DD_0hh_0mm_0ss%22 focus:%22title%22 
 text:store.getTiddlerText(%22PlanningTemplate%22)/}/} label:%22Planning 
 Planning testTiddler%22// newJournal title:%22testTiddler 
 _0MM_0DD_0hh_0mm_0ss%22 focus:%22title%22 
 text:store.getTiddlerText(%22QuotationsTemplate%22)/}/} label:%22Quotations 
 Quotations testTiddler%22//

 I don't know why it does not start the newJournal macro...


 On Friday, June 13, 2014 8:11:58 PM UTC+2, Eric Shulman wrote:

 On Friday, June 13, 2014 10:41:56 AM UTC-7, julien bouchez wrote:

 [[FetNewHere]]
 forEachTiddler
  where
  'tiddler.tags.contains(twTypes)' 
  write 
  ' newJournal title:$1 _0MM_0DD_0hh_0mm_0ss focus:title 
 text:{{store.getTiddlerText(+tiddler.title+Template)/}/}
 label:+tiddler.title+ [[+tiddler.title+]] [[$2]]//'
 
 I don't manage to have this last piece of code working.
 Could you please help me ?


 Your use of double-quotes is the problem.  ForEachTiddler clauses (such 
 as the write) clause, use single-quotes to surround the entire clause and 
 double-quotes to construct the string expression within that clause. 
  However, the string expression you are using contains TW macro syntax 
 which uses double-quotes around it's parameters.  Unfortunately, you can't 
 nest the double-quotes... so the first double-quote in your macro syntax 
 ENDS the ForEachTiddler string expression, rather than being literal quotes 
 in the output.

 One way to avoid this is to use the javascript hex code for the literal 
 quote characters: %22

 forEachTiddler
  where
  'tiddler.tags.contains(twTypes)' 
  write 
  ' newJournal title:%22$1 _0MM_0DD_0hh_0mm_0ss%22 focus:%22title%22 
 text:{{store.getTiddlerText(%22+tiddler.title+Template%22)/}/}
 label:%22+tiddler.title+ [[+tiddler.title+]] [[$2]]%22//'
 

 Let me know how it goes...

 enjoy,
 -e
 Eric Shulman
 TiddlyTools / ELS Design Studios

 YOUR DONATIONS ARE VERY IMPORTANT!
 HELP ME TO HELP YOU - MAKE A CONTRIBUTION TO MY TIP JAR...
http://TiddlyTools.github.com/fundraising.html#MakeADonation

 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 unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: [TWC] new tiddlers creation from type list

2014-06-13 Thread julien bouchez
...still have a problem ...

it makes tiddlers like this : Constants @ testTiddler

title
%22testTiddler

tags
_0MM_0DD_0hh_0mm_0ss%22 Constants testTiddler %22

text
{{store.getTiddlerText(ConstantsTemplate)/}/}

... still looking at it




On Friday, June 13, 2014 9:54:33 PM UTC+2, julien bouchez wrote:

 Hi all

 mistake at the end :

 \\'

 would work fine

 Thank you all

 Julien

 On Friday, June 13, 2014 9:46:50 PM UTC+2, julien bouchez wrote:

 Eric,

 thank you for the  = %22  I knew I was messing with double quote but did 
 no know how to google for equivalence...

 in [[testTiddled]] I get :

 newJournal title:%22testTiddler _0MM_0DD_0hh_0mm_0ss%22 
 focus:%22title%22 text:store.getTiddlerText(%22CompanyTemplate%22)/}/} 
 label:%22Company Company testTiddler%22// newJournal 
 title:%22testTiddler _0MM_0DD_0hh_0mm_0ss%22 focus:%22title%22 
 text:store.getTiddlerText(%22ConstantsTemplate%22)/}/} label:%22Constants 
 Constants testTiddler%22// newJournal title:%22testTiddler 
 _0MM_0DD_0hh_0mm_0ss%22 focus:%22title%22 
 text:store.getTiddlerText(%22PartsTemplate%22)/}/} label:%22Parts Parts 
 testTiddler%22// newJournal title:%22testTiddler 
 _0MM_0DD_0hh_0mm_0ss%22 focus:%22title%22 
 text:store.getTiddlerText(%22PeopleTemplate%22)/}/} label:%22People 
 People testTiddler%22// newJournal title:%22testTiddler 
 _0MM_0DD_0hh_0mm_0ss%22 focus:%22title%22 
 text:store.getTiddlerText(%22PlanningTemplate%22)/}/} label:%22Planning 
 Planning testTiddler%22// newJournal title:%22testTiddler 
 _0MM_0DD_0hh_0mm_0ss%22 focus:%22title%22 
 text:store.getTiddlerText(%22QuotationsTemplate%22)/}/} label:%22Quotations 
 Quotations testTiddler%22//

 I don't know why it does not start the newJournal macro...


 On Friday, June 13, 2014 8:11:58 PM UTC+2, Eric Shulman wrote:

 On Friday, June 13, 2014 10:41:56 AM UTC-7, julien bouchez wrote:

 [[FetNewHere]]
 forEachTiddler
  where
  'tiddler.tags.contains(twTypes)' 
  write 
  ' newJournal title:$1 _0MM_0DD_0hh_0mm_0ss focus:title 
 text:{{store.getTiddlerText(+tiddler.title+Template)/}/}
 label:+tiddler.title+ [[+tiddler.title+]] [[$2]]//'
 
 I don't manage to have this last piece of code working.
 Could you please help me ?


 Your use of double-quotes is the problem.  ForEachTiddler clauses (such 
 as the write) clause, use single-quotes to surround the entire clause and 
 double-quotes to construct the string expression within that clause. 
  However, the string expression you are using contains TW macro syntax 
 which uses double-quotes around it's parameters.  Unfortunately, you can't 
 nest the double-quotes... so the first double-quote in your macro syntax 
 ENDS the ForEachTiddler string expression, rather than being literal quotes 
 in the output.

 One way to avoid this is to use the javascript hex code for the 
 literal quote characters: %22

 forEachTiddler
  where
  'tiddler.tags.contains(twTypes)' 
  write 
  ' newJournal title:%22$1 _0MM_0DD_0hh_0mm_0ss%22 focus:%22title%22 
 text:{{store.getTiddlerText(%22+tiddler.title+Template%22)/}/}
 label:%22+tiddler.title+ [[+tiddler.title+]] [[$2]]%22//'
 

 Let me know how it goes...

 enjoy,
 -e
 Eric Shulman
 TiddlyTools / ELS Design Studios

 YOUR DONATIONS ARE VERY IMPORTANT!
 HELP ME TO HELP YOU - MAKE A CONTRIBUTION TO MY TIP JAR...
http://TiddlyTools.github.com/fundraising.html#MakeADonation

 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 unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.