MArk,

I do not recall the Linux method however if we "launch" a file in Windows 
it uses the application associated with the file extension to determine the 
app to load the file in. This can also be done with "start filename". 
However when in a command prompt does the name of a .exe .cmd or .bat 
result in that being executed. 

You can use a batch command of cmd /C command to forceful launch it in a 
command prompt and other methods.

I expect you just need to find the way to launch a script rather than edit 
it. Perhaps through a console session or something like that.

Tones



On Monday, 18 January 2021 at 01:45:35 UTC+11 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/ec6d61f8-4674-4fc8-8487-224b6ec20f46n%40googlegroups.com.

Reply via email to