Josiah,

It is not quite like your first paragraph below.

Given Office 365 support clicking on local links to Office documents allow 
me to open or save (already), I open them and the app launches editing the 
original local file. Outside the document types already supported for 
viewing in the browser such as PDF and Txt (read Only) I use this "export 
as command" process from a custom tiddler, the custom export places the 
command line with parameters in the exported/downloaded file example 
commands "C:\Users\Tony\Dropbox\PortableApps\Start.exe" OR "notepad 
C:\Windows\System32\drivers\etc\hosts." If however you use "Start 
filename.ext" the start command will execute the app with the file 
association to ext. Yes, the result is I open the original local file in a 
desktop application.

I have not generalised the batch file yet but here is the guts inside a loop

if exist C:\Users\Tony\Downloads\*.tidact echo tidact file(s) for processing
if exist C:\Users\Tony\Downloads\*.tidact move 
C:\Users\Tony\Downloads\*.tidact C:\Data\batches\tidact\
if exist C:\Data\batches\tidact\*.tidact for %%A in 
(C:\Data\batches\tidact\*.tidact) Do call :actions "%%A"

the the :action section moves, renames, executes and deletes the file.

It may be possible to help install this batch process using the command 
execution process itself (more thought required)

I hope than throws more light on it?

Tony



On Monday, July 3, 2017 at 11:21:59 PM UTC+10, @TiddlyTweeter wrote:
>
> Ciao TonyM
>
> Am I right in thinking that this gets round the issue that when you click 
> on most local file links in browsers they download the file type to the 
> download folder. And what you are aiming to do is open the originals? Have 
> I understood?
>
> You are using TW to construct the command lines? Right? And they get 
> executed by an external batching mechanism. That is very interesting. I'm 
> not sure how easily it could generalise, but its definitely interesting.
>
> I was kinda thinking about it the other way around. You push the browser 
> to register many file types the OS already knows. They get downloaded and 
> auto-invoked in a "download folder" for editing. Then you have a mechanism 
> to copy them back "home" after changes.
>
> One thing seems clear, with browsers as they have become, you will need 
> some "gizmo" outside them to do part of the magic. 
>
> Best wishes
> Josiah
>
> On Sunday, 2 July 2017 11:08:03 UTC+2, TonyM wrote:
>>
>> An update on executing Windows OS commands from within tiddlywiki
>>
>> I have a reasonable solution, which could be improved upon
>>
>> I managed to create a custom exporter using copies of the following 
>> tiddlers
>>
>> $:/core/templates/exporters/TidFile
>>
>> $:/language/Exporters/TidFile
>>
>> $:/core/templates/tid-tiddler 
>>
>>
>> The custom exporter exports the command and parameter fields only from a 
>> custom tiddler to a custom file type/extension
>>
>>
>> When I want to execute a documented command tiddler I use the toolbar 
>> export option and select as type "command" (my name). This will prompt me 
>> to save this "tiddler" or command.
>>
>> As I always save downloads in a fixed folder and they go there.
>>
>>
>> I have a looping batch file that looks for the appearance of these files 
>> in the download directory (I will run it when I have a command to execute 
>> the first time), the batchfile moves them to a folder and runs the command 
>> in the command shell, then deletes them.
>>
>>
>> I can even open notepad on the hosts file, or run applications not known 
>> by firefox. Using the start commend I can leverage all windows file 
>> associations.
>>
>>
>> I can generalise this and publish if anyone is interested.
>>
>>
>> I suppose now a button or links to export current tiddler using the 
>> specific file type more easily, or a feature like tiddlyfox that permits 
>> saving these file types without prompting would make it better.
>>
>>
>> My feeling is this approach is somewhat immune from hacking because of 
>> the minimal user intervention required, and I am using this on a tiddlywiki 
>> dedicated to the local machine only, not hosted.
>>
>>
>> Your thought please,
>> Tony
>>
>>
>> On Saturday, June 24, 2017 at 7:33:15 PM UTC+10, TonyM wrote:
>>>
>>> Hi all in this wonderful community,
>>>
>>> I have only recently started to get serious with TW5 after years of 
>>> TiddlyWiki Classic.
>>>
>>> I just wanted to put it out there and seek your input to my current 
>>> project, building "Windows Desktop Interactive TiddlyWiki's", by which I 
>>> mean that I am using TiddlyWiki 5 instances to build and support my use of 
>>> the Windows desktop environment. Managing folders and their contents, 
>>> documenting file locations, network locations, Network devices, 
>>> highlighting important documents and settings, even launching applications 
>>> or documenting troubleshooting tips and settings. The idea includes the 
>>> creation of what I call Micro-sites using tiddlywiki for whatever I fancy.
>>>
>>> You could say I want to enable TiddlyWiki to become a "first class 
>>> citizen" when it comes to the Local operating system.
>>>
>>> *My setup*
>>> My preferred browser is FireFox but I use Chrome as well.
>>> I have a node.JS install, but also independent wikis. 
>>>
>>> Please let me know your thoughts and any inspiration you have, along 
>>> with plugins and tips you think may add value.
>>>
>>> *Examples so far*
>>>
>>>    - Using standard TiddlyWiki external Links I can document the Web 
>>>    admin addresses of routers, open and read text and config files.
>>>    - Using Import, Drag and Drop I can document setting and text files 
>>>    and more
>>>    - From inside TiddlyWiki or the Browser session, I can browse the 
>>>    file system, open file and network locations in Windows Explorer, and 
>>>    Microsoft Office application documents (any registered file types from 
>>>    inside FireFox.
>>>       - Using the FireFox "Local File System Links" Add-on/extension, 
>>>       With the execute files option checked (not wise browsing the 
>>> internet) 
>>>       - I can launch native applications
>>>          - Launch batches, and Presumably power-shell scripts
>>>          
>>> *Some things I would like to do,*
>>>
>>>    - Include an image of a Graphical map of my network with hotspot 
>>>    clicks to go to that device, backed up by device info and settings
>>>    - Build a open tasks related apps menu
>>>    - Nice Graphical application launcher
>>>    
>>>
>>> Of course I will share back my progress and consolidated findings to the 
>>> community
>>>
>>> Thanks in Advance
>>> TonyM
>>>   
>>>
>>

-- 
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/b2a04c97-0449-440a-aa76-8f92203e95b2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to