Ciao Mark Very interesting discussion---even though I'm Linux-impoverished.
Mark concluded ... | But all this is contingent on being able to run a script in the first place. Right. And on that I'm no help. All I know is that when we worked on POLLY this issue came up and we were unable to settle it for Mac or Linux satisfactorily? The way that Windows evokes programs based on file-types (as mentioned by TW Tones) I don't think is so clearly mirrored on Linux? Just FYI, in my own case, I now use Powershell on Windows (launched by a TW) to actually fetch remote files and then use PS to apply regex to prep them for TW. Partly I'm doing that so its a PORTABLE solution between PC's without needing to add utilities or learn how to pass commands to them. Powershell has a big range of functions that in some ways makes that kind of portability easier. Just side thoughts TT Mark S. wrote: > I was thinking in terms of intelligent web clipping. It's fairly easy to > drag and drop an article into TW and import it. Unfortunately, the text > will be in HTML, and the images will require an internet connection. So the > resulting article is bulky, difficult to edit, and non-portable. > > On Linux, in particular there are a lot of tools available. There's pandoc > for file conversion, imagemagik for image conversion, and wget/curl for > downloading. I was imagining that it might be possible to create a bash > script that could leverage all this and be launched from within TW. So you > could click on a button, and your article would be converted to markdown, > the images downloaded, and the image links updated to the local resources. > But all this is contingent on being able to run a script in the first place. > > On Wednesday, January 13, 2021 at 3:05:40 AM UTC-8 TiddlyTweeter wrote: > >> Ciao Mark S. >> >> I'm not answering your Mac question as I'm only PC and Android. >> >> What I did want to generally comment is that "residual" ability to access >> the OS via "in TW scripts" is still very worthy. >> I think its particularly helpful in stand-alone one-file TW---AND >> TiddlyDesktop, which functions as a "whole". >> >> Part of the issue is, of course, the browser lockdowns on security issues >> have made it very difficult to do that. >> But, FWIW, I was much taken by what Riz managed to do in the (previous) >> release on Timimi for Firefox. Essentially a small OS hooker that passed >> muster and let you launch scripts. >> >> Frankly I do not have the competence to understand the machinations of >> the issue. >> >> That said, I do have enough understanding to know that TW is much more >> than a static web page and OS interaction can more than ice the cake of it. >> >> Thoughts >> TT >> >> On Tuesday, 12 January 2021 at 21:13:00 UTC+1 Mark S. wrote: >> >>> TW Tones pointed out that it was possible to run scripts from TD in >>> Windows. >>> >>> When I try this, several different ways, in linux, it wants to *edit* >>> the batch script, rather than run it. And yes, I do have the executable bit >>> set on the file, the right extension (.sh in this case), and the path must >>> be right because it can find the file for editing. >>> >>> Attempting to google "How to launch script from browser" leads me down >>> multiple wrong rabbit holes. >>> >>> Probably, if someone knows how to do this in Mac, it would be similar >>> >>> Thanks! >>> >> -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/e98dac49-fe25-4f06-9e72-05fe32b0fc25n%40googlegroups.com.

