[tw] Re: [TWC] Local files with TiddlyDesktop or TiddlyServer?

2018-02-07 Thread Jon
Okido, that's an absurdly simple and effective solution that, delightfully, 
also works fine *without* TiddlyDesktop or TiddlyServer. Subdirectories 
work, so I have no problem with being restricted to the download directory.
Robert, thank you for that helpful link! I didn't know about either 
MicroTiddlyServer or that a Classic group had formed. Very useful on both 
counts.

-- 
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 https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/60175d6d-a4ca-4a28-8bba-93df27452588%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: [TWC] Local files with TiddlyDesktop or TiddlyServer?

2018-02-04 Thread Robert Edwards
This might be helpful:
https://groups.google.com/forum/#!topic/tiddlywikiclassic/Eb48yQBof5c

On Friday, January 12, 2018 at 6:08:18 PM UTC-5, Jon wrote:
>
> Hi,
>
> I have some highly modified TWCs that are important but way too much 
> trouble to convert to TW5 (until maybe retirement puts a lot of time into 
> my hands).
>
> It would be very useful for a couple of these to be able to read and write 
> local files. Impossible with current browsers, but perhaps possible with 
> TiddlyDesktop or TiddlyServer? If so, can someone spoon-feed me some basics 
> to help me get started? I'm experienced with TW, but not at all experienced 
> with nodejs or nw. The files could be either ordinary text files or 
> externally stored tiddlers, it doesn't really matter, as long as I can read 
> and write them with javascript.
>
> Thanks!
> Jon
>
>

-- 
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 https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/53595035-1d4d-40ca-bac9-4a5d97715556%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: [TWC] Local files with TiddlyDesktop or TiddlyServer?

2018-02-04 Thread okido
Hello Jon,

Somebody made a comment to use the internal download mechanism.
You can do this with some inline javascript, InlineJavascriptPlugin is 
needed:


let fileName = "data.txt"
let dataContent = "Lorum ipsum"
HTML5DownloadSaveFile(fileName, dataContent)


You are restricted to the download directory, but further every thing goes.

Have a nice day, Okido


Op maandag 15 januari 2018 22:34:59 UTC+1 schreef Jon:
>
>
> Thank you, Tony & Okido. Those are both good leads!
>
> Duh, should've thought about starting from the built-in saving mechanism. 
> But, Okido, if you have a TWC plugin for filesaver.js already, that would 
> certainly save me time.
>
> Thanks,
> Jon
>

-- 
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 https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/c0c8975b-e754-421e-8b71-8d6b2e36e2b2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: [TWC] Local files with TiddlyDesktop or TiddlyServer?

2018-01-14 Thread TonyM
Jon

Investigate writing your own exporter using the one already there. I think 
tiddlywiki.com will lead you there or search this forum.

So far I can only save as registered file types but you may be able to 
overwrite existing files. Unless you use a file save dialogue with appropriate 
browser setting you will most likely be restricted to the download directory.

See how you go, I can give more info.

Regards
Tony

-- 
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 https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/3cc88941-0b4b-4260-9ee5-3dcca912dc29%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: [TWC] Local files with TiddlyDesktop or TiddlyServer?

2018-01-14 Thread okido
Hello Jon,

You can use filesaver.js, see on github, 
https://github.com/eligrey/FileSaver.js/
The plugin for Tiddlywiki Classic is attached.
An example to use with InlineJavascript is included.
For your macro request please let me know what tiddler parts you want to 
save.

Posting the file on this forum gives an error at the moment, I will try 
later.

Have a nice day, Okido


Op zaterdag 13 januari 2018 00:08:18 UTC+1 schreef Jon:
>
> Hi,
>
> I have some highly modified TWCs that are important but way too much 
> trouble to convert to TW5 (until maybe retirement puts a lot of time into 
> my hands).
>
> It would be very useful for a couple of these to be able to read and write 
> local files. Impossible with current browsers, but perhaps possible with 
> TiddlyDesktop or TiddlyServer? If so, can someone spoon-feed me some basics 
> to help me get started? I'm experienced with TW, but not at all experienced 
> with nodejs or nw. The files could be either ordinary text files or 
> externally stored tiddlers, it doesn't really matter, as long as I can read 
> and write them with javascript.
>
> Thanks!
> Jon
>
>

-- 
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 https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/8e2bb695-2ea6-458b-aae7-0e309de50cff%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: [TWC] Local files with TiddlyDesktop or TiddlyServer?

2018-01-13 Thread Jon


> What do you mean by "local files... impossible with current browsers" ? 
> Have you seen https://pmario.github.io/file-backups/ ?
>

Sorry, maybe not clear. Not worried at the moment about saving the TW 
(Waterfox + TiddlyFox still works) - looking to be able to have a macro 
write a data file to disk.

-- 
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 https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/471b0fa9-3abe-4474-967b-de14694dd01d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: [TWC] Local files with TiddlyDesktop or TiddlyServer?

2018-01-13 Thread okido
Hi Jon,

Reading local text files is possible, I use d3.js and some inline 
JavaScript in FF57.
Download the d3.js from github, past it in a tiddler and tag with 
systemConfig.
Paste the following inline js in a tiddler and provide the right 
path/filename and tiddlername to save. InlineJavascriptPlugin is required.


  d3.text("path/filename.txt", function(data) {
  store.saveTiddler("LoadedDataD3", "LoadedDataD3", data, 
config.options.txtUserName, new Date(), "tags")
  })


There you go.

Have a nice day, Okido

Op zaterdag 13 januari 2018 00:08:18 UTC+1 schreef Jon:
>
> Hi,
>
> I have some highly modified TWCs that are important but way too much 
> trouble to convert to TW5 (until maybe retirement puts a lot of time into 
> my hands).
>
> It would be very useful for a couple of these to be able to read and write 
> local files. Impossible with current browsers, but perhaps possible with 
> TiddlyDesktop or TiddlyServer? If so, can someone spoon-feed me some basics 
> to help me get started? I'm experienced with TW, but not at all experienced 
> with nodejs or nw. The files could be either ordinary text files or 
> externally stored tiddlers, it doesn't really matter, as long as I can read 
> and write them with javascript.
>
> Thanks!
> Jon
>
>

-- 
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 https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/2588fbaf-cd2a-49cb-ba8b-5850cfcc68f9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: [TWC] Local files with TiddlyDesktop or TiddlyServer?

2018-01-12 Thread TonyM
Jon,

I am using TiddlyDesktop now for my large TWC. I was using firefox and also 
TW5 for what I call desktop intergration, a rich interaction with my 
windows 10 file system, but I have put this on hold with the Browser clamp 
downs. 
I do not need to read/write via Javascript, perhaps this is a question for 
the TiddlyWikiDev forum but Mark S. and other can help here.

Once something is a tiddler of course you have more control, so the import, 
export tools and the code behind them should help.

Regards
Tony

Rehards
Tony

-- 
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 https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/ee623a0e-96c5-4d05-90bc-501feda6369f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: [TWC] Local files with TiddlyDesktop or TiddlyServer?

2018-01-12 Thread 'Mark S.' via TiddlyWiki
What do you mean by "local files... impossible with current browsers" ? 
Have you seen https://pmario.github.io/file-backups/ ?

-- Mark

On Friday, January 12, 2018 at 3:08:18 PM UTC-8, Jon wrote:
>
> Hi,
>
> I have some highly modified TWCs that are important but way too much 
> trouble to convert to TW5 (until maybe retirement puts a lot of time into 
> my hands).
>
> It would be very useful for a couple of these to be able to read and write 
> local files. Impossible with current browsers, but perhaps possible with 
> TiddlyDesktop or TiddlyServer? If so, can someone spoon-feed me some basics 
> to help me get started? I'm experienced with TW, but not at all experienced 
> with nodejs or nw. The files could be either ordinary text files or 
> externally stored tiddlers, it doesn't really matter, as long as I can read 
> and write them with javascript.
>
> Thanks!
> Jon
>
>

-- 
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 https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/7762bb7d-22b0-4840-b1a2-128148cab463%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.