[tw] Re: macro in macro - problem with single quote sign

2009-01-02 Thread Eric Shulman

 forEachTiddler
  where
  'tiddler.tags.containsAll([Subject1])'
  write
  '[[+tiddler.title+]] newSavedTiddler title:'new' label:'+' tag:
 {{'+tiddler.title+'}}$))\n'


 What is problematic are the single-apostrophe signs which apparently
 are required for both parameters. The  have been exchanged for $))
 so I'm hoping there is something similar for the apostrophe.

You can use [[ and ]] as alternative quotes around any macro parameter
value, like this:

'[[+tiddler.title+]] newSavedTiddler title:[[new]] label:[[+]]
tag:{{'+tiddler.title+'}}$))\n'

enjoy,
-e
Eric Shulman
TiddlyTools / ELS Design Studios

--~--~-~--~~~---~--~~
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: macro in macro - problem with single quote sign

2009-01-02 Thread Amzg

Wohooo - it works! Thank you Mr.Shulman

For the record, here's the end result;


forEachTiddler
 where
 'tiddler.tags.containsAll([Subject1])'
 write
 '[[+tiddler.title+]] newSavedTiddler title:[[new]] label:[[+]]
tag:[[+tiddler.title+]]$)) +++[][] tagglyTagging
[[+tiddler.title+]]$))===\n\n'

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---