I have this script I compiled from various sources / ELS posts.
(sections not included for simplicity
<script show>
var title= "Auto Test 042809";
var project = store.getTiddlerText("Test 042809##Project", "");
var urgent = store.getTiddlerText("Test 042809##Urgent", "");
var pending = store.getTiddlerText("Test 042809##Pending", "");
var completed = store.getTiddlerText("Test 042809##Completed", "");
var combined = (project +"\n"+"@@display:none;"+"\n"+ urgent +"\n"+
pending +"\n"+ completed);
var txt= combined;
var who=config.options.txtUserName;
var when=new Date();
var tags='"Test 042809" "TaskTabs" "excludeLists"';
var fields={};
if(store.tiddlerExists(title)){
/* alert('Auto Test 042809 has already been created');*/
} else {
store.saveTiddler(title,title,txt,who,when,tags,fields);
story.refreshTiddler(story.findContainingTiddler(place).getAttribute
("tiddler"),null,true);}
</script>
The script works, but when I try to use it as a plugin I get Place not
defined (last line of the code, in the else section)
Any suggestions or horrible coding errors?
Thank You in Advance,
Mike
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TiddlyWikiDev" 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/TiddlyWikiDev?hl=en
-~----------~----~----~----~------~----~------~--~---