Re: [tw] Re: [TW5] Add ability to save/export other extensions

2017-12-03 Thread TonyM
Jeremy,

I will revisit the custom exporter but the last time I did that I ended up 
with files filename.cmd.html

Thanks
Tony

On Monday, 4 December 2017 08:27:03 UTC+11, Jeremy Ruston wrote:
>
> Hi Tony
>
> > How can I add another such as
>
> Currently, file types can only be registered in boot.js. The problem is 
> that the file types are needed early in the boot process in order to be 
> able to read the files in the wiki folder.
>
> It might be possible to engineer a way to add optional file extensions 
> after bootup, but in the meantime I think it's reasonable to keep adding 
> them to boot.js, as long as they are fairly general purpose.
>
> > So I can export with the cmd extension?
>
> That should be possible without extending the core file extensions table. 
> In exporter modules like $:/core/templates/exporters/CsvFile you'll see 
> that the file extension is stored in a field; you can create an exporter 
> for .cmd files that sets the correct file extension.
>
> Best wishes
>
> Jeremy
>
> --
> Jeremy Ruston
> jer...@jermolene.com 
> https://jermolene.com
>
> On 3 Dec 2017, at 03:01, TonyM  wrote:
>
> Eric,
>
> If you have no time to investigated this you self could you give some 
> guidance?
>
> It may only be a matter of being able to append to the existing table of 
> registered file type after the tiddlywiki file has being opened.
>
> Thanks either way
>
> Tony
>
> On Sunday, 3 December 2017 13:16:24 UTC+11, Eric Shulman wrote:
>>
>> On Saturday, December 2, 2017 at 5:43:06 PM UTC-8, PMario wrote:
>>>
>>> You can't, because there is no mime-type: text/cmd
>>>
>>> see: https://en.wikipedia.org/wiki/Media_type
>>> and: https://www.iana.org/assignments/media-types/media-types.xhtml#text
>>>
>>
>> Although it is not recommended, you can specify ANY string you like as a 
>> mime type, even if it is not included in any of the defined standards.  
>> Thus, you can enter "text/cmd" into the "Type" field of a tiddler.  
>> However, since that is not a standard type, it won't be recognized by any 
>> of the usual mechanisms.  Nonetheless, if you extend TiddlyWiki's 
>> registeredFileType definitions, you SHOULD be able to export tiddlers with 
>> "type/cmd" to files with a ".cmd" extension.  Note that I have NOT tried 
>> this myself, so there may be more involved in making it work.
>>
>> -e
>>
>> -- 
> 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+...@googlegroups.com .
> To post to this group, send email to tiddl...@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/1b7dc0f6-2282-4f89-bdcc-3d7dffc5d6d9%40googlegroups.com
>  
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>
>

-- 
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/fb667388-74be-412f-bd04-420cc90c8568%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] Re: [TW5] Add ability to save/export other extensions

2017-12-03 Thread Jeremy Ruston
Hi Tony

> How can I add another such as

Currently, file types can only be registered in boot.js. The problem is that 
the file types are needed early in the boot process in order to be able to read 
the files in the wiki folder.

It might be possible to engineer a way to add optional file extensions after 
bootup, but in the meantime I think it's reasonable to keep adding them to 
boot.js, as long as they are fairly general purpose.

> So I can export with the cmd extension?

That should be possible without extending the core file extensions table. In 
exporter modules like $:/core/templates/exporters/CsvFile you'll see that the 
file extension is stored in a field; you can create an exporter for .cmd files 
that sets the correct file extension.

Best wishes

Jeremy

--
Jeremy Ruston
jer...@jermolene.com
https://jermolene.com

> On 3 Dec 2017, at 03:01, TonyM  wrote:
> 
> Eric,
> 
> If you have no time to investigated this you self could you give some 
> guidance?
> 
> It may only be a matter of being able to append to the existing table of 
> registered file type after the tiddlywiki file has being opened.
> 
> Thanks either way
> 
> Tony
> 
>>> On Sunday, 3 December 2017 13:16:24 UTC+11, Eric Shulman wrote:
>>> On Saturday, December 2, 2017 at 5:43:06 PM UTC-8, PMario wrote:
>>> You can't, because there is no mime-type: text/cmd
>>> see: https://en.wikipedia.org/wiki/Media_type
>>> and: https://www.iana.org/assignments/media-types/media-types.xhtml#text
>> 
>> Although it is not recommended, you can specify ANY string you like as a 
>> mime type, even if it is not included in any of the defined standards.  
>> Thus, you can enter "text/cmd" into the "Type" field of a tiddler.  However, 
>> since that is not a standard type, it won't be recognized by any of the 
>> usual mechanisms.  Nonetheless, if you extend TiddlyWiki's 
>> registeredFileType definitions, you SHOULD be able to export tiddlers with 
>> "type/cmd" to files with a ".cmd" extension.  Note that I have NOT tried 
>> this myself, so there may be more involved in making it work.
>> 
>> -e
> 
> -- 
> 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/1b7dc0f6-2282-4f89-bdcc-3d7dffc5d6d9%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
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/21214493-646A-426A-8383-0CD003AE91F0%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: [TW5] Add ability to save/export other extensions

2017-12-02 Thread TonyM
Eric,

If you have no time to investigated this you self could you give some 
guidance?

It may only be a matter of being able to append to the existing table of 
registered file type after the tiddlywiki file has being opened.

Thanks either way

Tony

On Sunday, 3 December 2017 13:16:24 UTC+11, Eric Shulman wrote:
>
> On Saturday, December 2, 2017 at 5:43:06 PM UTC-8, PMario wrote:
>>
>> You can't, because there is no mime-type: text/cmd
>>
>> see: https://en.wikipedia.org/wiki/Media_type
>> and: https://www.iana.org/assignments/media-types/media-types.xhtml#text
>>
>
> Although it is not recommended, you can specify ANY string you like as a 
> mime type, even if it is not included in any of the defined standards.  
> Thus, you can enter "text/cmd" into the "Type" field of a tiddler.  
> However, since that is not a standard type, it won't be recognized by any 
> of the usual mechanisms.  Nonetheless, if you extend TiddlyWiki's 
> registeredFileType definitions, you SHOULD be able to export tiddlers with 
> "type/cmd" to files with a ".cmd" extension.  Note that I have NOT tried 
> this myself, so there may be more involved in making it work.
>
> -e
>
>

-- 
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/1b7dc0f6-2282-4f89-bdcc-3d7dffc5d6d9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: [TW5] Add ability to save/export other extensions

2017-12-02 Thread TonyM
Mario,

I know what you say, but as eric says we own the software here that can 
choose. 

I have asked this question in other requests to no response.  To me this 
would open a great deal of potential to store code, snipits, powershell 
scripts, terminal commands and more.

For example recently a Clients web host insisted on DNS Zone File updates 
being presented in a specific format and file standard, it would be easy to 
develop a standard tiddler one could edit some field values and generate 
the file for upload or email.

Additionally We can include a sentenal batch file, loaded on Windows (my 
expertise)  in start up that then monitors downloads (other exported 
tiddlers) and actions them. For example setting symbolic links, displaying 
the full download path, executing system commands sending them to an editor 
or SDK and much more. I also have some ways to ensure a degree of security 
on this.
 
One compelling example with a currently registered type is automating the 
generation of the settings.json for TiddlyServer in TiddlyWiki then export 
it to the right folder.

Of course we can write something that does not use the existing export 
features, but to me it makes sense using it because it also allows specific 
identification of such registered tiddler types.

Apart form my wanting to boost TW5 interaction with my desktop I see plenty 
of opportunity to use this to simplify install and integration tools, for 
example a tiddler could document and automate the whole install and execute 
process for newbies (by OS). We could even build HTML page builders, NodeJS 
command execution from inside tiddlywiki itself and a lot more.

Ma be I an dreaming?

Tony


On Sunday, 3 December 2017 12:43:06 UTC+11, PMario wrote:
>
> Hi Tony, 
>
> You can't, because there is no mime-type: text/cmd
>
>
> see: https://en.wikipedia.org/wiki/Media_type
> and: https://www.iana.org/assignments/media-types/media-types.xhtml#text
>
>
> It would be better, to describe, what you want to achieve.
>
>
> -m
>

-- 
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/981ed7a2-b404-47fc-ae84-f7033acf987c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: [TW5] Add ability to save/export other extensions

2017-12-02 Thread Eric Shulman
On Saturday, December 2, 2017 at 5:43:06 PM UTC-8, PMario wrote:
>
> You can't, because there is no mime-type: text/cmd
>
> see: https://en.wikipedia.org/wiki/Media_type
> and: https://www.iana.org/assignments/media-types/media-types.xhtml#text
>

Although it is not recommended, you can specify ANY string you like as a 
mime type, even if it is not included in any of the defined standards.  
Thus, you can enter "text/cmd" into the "Type" field of a tiddler.  
However, since that is not a standard type, it won't be recognized by any 
of the usual mechanisms.  Nonetheless, if you extend TiddlyWiki's 
registeredFileType definitions, you SHOULD be able to export tiddlers with 
"type/cmd" to files with a ".cmd" extension.  Note that I have NOT tried 
this myself, so there may be more involved in making it work.

-e

-- 
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/d6b365a4-4c0e-4ae7-ae75-798abc21fe12%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: [TW5] Add ability to save/export other extensions

2017-12-02 Thread PMario


Hi Tony, 

You can't, because there is no mime-type: text/cmd


see: https://en.wikipedia.org/wiki/Media_type
and: https://www.iana.org/assignments/media-types/media-types.xhtml#text


It would be better, to describe, what you want to achieve.


-m

-- 
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/004a6493-9559-4e96-b86f-65d74541b238%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.