[tw5] Re: twexe (the plugin) update
Folks, I have read that the hta format may not be supported in the future, for tiddlywiki users however we still have tiddly desktop which has local computer rights, I have not tested the twexe in this thread on TiddlyDesktop but I expect it would work. Using Internet Explorer is a liability given its end of life status, it has and possibly always was a target of hacks and Malware. Using the mshta.exe or an alternative can continue but only if supported. Regards Tones On Tuesday, 15 June 2021 at 06:11:01 UTC+10 james.w@gmail.com wrote: > Ah yeah, some of the newer features are not there yet. > > > On Monday, 14 June 2021 at 20:33:45 UTC+1 Si wrote: > >> >>> what's the details tag? >> >> It's an HTML element that you can click on to hide/reveal a block of >> text: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/details >> >> There's a handy TW implementation here: >> https://tid.li/tw5/plugins.html#%24%3A%2Fplugins%2Ftelmiger%2Fdetails >> >> It was added recently enough that it is not supported by Internet >> Explorer. It's just one example, I'm sure there are all sorts of things >> that have been added to new browsers which won't work in older ones. >> >> On Monday, 14 June 2021 at 19:31:48 UTC+1 james.w@gmail.com wrote: >> >>> what's the details tag? >>> >>> On Monday, 14 June 2021 at 19:04:51 UTC+1 Si wrote: >>> Hi James, >>> I don't think it's true that you need Internet Explorer for any of this, it's runs under the mshta.exe which should ship with windows. It seems that mshta.exe relies on the Internet Explorer engine (not that I know what that means...): https://en.wikipedia.org/wiki/HTML_Application#Execution Anyway a wiki running as an hta app looks just like it does when running in IE, and more recent web stuff doesn't work (e.g. the details tag). My main wiki won't even open in IE (or as an hta) due to some of the plugins I have installed. >>> if you are still interested i can maybe help look at any issues you are hitting Thank you! Though I've now figured out my mistake: I was using a folder for twexe_cmd that didn't exist! Works as expected now. >>> I don't knoe if this is still needed but i have another plugin $:/plugins/welford/htalink/link.js which makes the wiki open links in the default browser. I didn't install that plugin and it still works, but I only did a simple test. On Monday, 14 June 2021 at 17:40:08 UTC+1 james.w@gmail.com wrote: > Hey Si, I don't think it's true that you need Internet Explorer for > any of this, it's runs under the mshta.exe which should ship with > windows. I certainly don't have IE installed on my system - but you will > need windows. > > I don't knoe if this is still needed but i have another plugin > $:/plugins/welford/htalink/link.js which makes the wiki open links in the > default browser. > > if you are still interested i can maybe help look at any issues you > are hitting: Excuse the crude picture but setting up a twexe should be > pretty simple. this one opens calc and then is linked to twice in another > doc, first as it is and then a second time with overridden params. > > [image: asdf.png] > > On Monday, 14 June 2021 at 16:17:21 UTC+1 Si wrote: > >> Hi James thanks for the reply. Just trying it I actually can't even >> get it to work with a batch file ("The filename, directory name, or >> volume >> label syntax is incorrect"). This doesn't matter however because I also >> now >> realize that .hta will use internet explorer to run the app, which means >> unfortunately I can't use this for my wiki anyway. >> >> On Sunday, 13 June 2021 at 20:09:25 UTC+1 james.w@gmail.com >> wrote: >> >>> Just tested and unfortunately not right now. >>> >>> I have a few places where i call >>> WshShell.Run( "cmd /c " + path + " " + args ); From a quick google >>> making >>> the "cmd /c" part call "powershell -File " maybe with some other >>> settings >>> like -executionpolicy unrestricted. >>> >>> I know next to nothing about powershell though. >>> >>> if you take a look at >>> http://welford.github.io/#%24%3A%2Fplugins%2Fwelford%2Ftwexe%2Ftwexe.js >>> specifically >>> TWExeWidget.prototype.runTiddler = function (event) { >>> TWExeWidget.prototype.openFile = function (event) { >>> >>> and can give me a working string format for powershell scripts i >>> can update the plugin to provide the shell in which it will run via a >>> field. e.g. twexe_shell: powershell, so that we can support both. >>> >>> >>> >>> On Sunday, 13 June 2021 at 19:18:45 UTC+1 Si wrote: >>> Thanks James I did not know this existed! I was looking for
[tw5] Re: twexe (the plugin) update
Ah yeah, some of the newer features are not there yet. On Monday, 14 June 2021 at 20:33:45 UTC+1 Si wrote: > >>> what's the details tag? > > It's an HTML element that you can click on to hide/reveal a block of text: > https://developer.mozilla.org/en-US/docs/Web/HTML/Element/details > > There's a handy TW implementation here: > https://tid.li/tw5/plugins.html#%24%3A%2Fplugins%2Ftelmiger%2Fdetails > > It was added recently enough that it is not supported by Internet > Explorer. It's just one example, I'm sure there are all sorts of things > that have been added to new browsers which won't work in older ones. > > On Monday, 14 June 2021 at 19:31:48 UTC+1 james.w@gmail.com wrote: > >> what's the details tag? >> >> On Monday, 14 June 2021 at 19:04:51 UTC+1 Si wrote: >> >>> Hi James, >>> >>> >>> I don't think it's true that you need Internet Explorer for any of >>> this, it's runs under the mshta.exe which should ship with windows. >>> >>> It seems that mshta.exe relies on the Internet Explorer engine (not that >>> I know what that means...): >>> https://en.wikipedia.org/wiki/HTML_Application#Execution >>> >>> Anyway a wiki running as an hta app looks just like it does when running >>> in IE, and more recent web stuff doesn't work (e.g. the details tag). My >>> main wiki won't even open in IE (or as an hta) due to some of the plugins I >>> have installed. >>> >>> >>> if you are still interested i can maybe help look at any issues you >>> are hitting >>> >>> Thank you! Though I've now figured out my mistake: I was using a folder >>> for twexe_cmd that didn't exist! Works as expected now. >>> >>> >>> I don't knoe if this is still needed but i have another plugin >>> $:/plugins/welford/htalink/link.js which makes the wiki open links in the >>> default browser. >>> >>> I didn't install that plugin and it still works, but I only did a simple >>> test. >>> >>> On Monday, 14 June 2021 at 17:40:08 UTC+1 james.w@gmail.com wrote: >>> Hey Si, I don't think it's true that you need Internet Explorer for any of this, it's runs under the mshta.exe which should ship with windows. I certainly don't have IE installed on my system - but you will need windows. I don't knoe if this is still needed but i have another plugin $:/plugins/welford/htalink/link.js which makes the wiki open links in the default browser. if you are still interested i can maybe help look at any issues you are hitting: Excuse the crude picture but setting up a twexe should be pretty simple. this one opens calc and then is linked to twice in another doc, first as it is and then a second time with overridden params. [image: asdf.png] On Monday, 14 June 2021 at 16:17:21 UTC+1 Si wrote: > Hi James thanks for the reply. Just trying it I actually can't even > get it to work with a batch file ("The filename, directory name, or > volume > label syntax is incorrect"). This doesn't matter however because I also > now > realize that .hta will use internet explorer to run the app, which means > unfortunately I can't use this for my wiki anyway. > > On Sunday, 13 June 2021 at 20:09:25 UTC+1 james.w@gmail.com wrote: > >> Just tested and unfortunately not right now. >> >> I have a few places where i call >> WshShell.Run( "cmd /c " + path + " " + args ); From a quick google >> making >> the "cmd /c" part call "powershell -File " maybe with some other >> settings >> like -executionpolicy unrestricted. >> >> I know next to nothing about powershell though. >> >> if you take a look at >> http://welford.github.io/#%24%3A%2Fplugins%2Fwelford%2Ftwexe%2Ftwexe.js >> specifically >> TWExeWidget.prototype.runTiddler = function (event) { >> TWExeWidget.prototype.openFile = function (event) { >> >> and can give me a working string format for powershell scripts i can >> update the plugin to provide the shell in which it will run via a field. >> e.g. twexe_shell: powershell, so that we can support both. >> >> >> >> On Sunday, 13 June 2021 at 19:18:45 UTC+1 Si wrote: >> >>> Thanks James I did not know this existed! I was looking for >>> something similar a while ago. >>> >>> Can you use it to run PowerShell scripts? >>> On Tuesday, 4 May 2021 at 13:31:27 UTC+1 james.w@gmail.com >>> wrote: >>> Incase any windows/hta users still use this: I've updated this plugin. the source is here: https://github.com/welford/twexe and you can grab a copy of the updated plugin from http://welford.github.io/ The big change is that you can run the contents of a tiddler as a batch file, which should help keep things portable (between machines / environments, not cross platform). It will create
[tw5] Re: twexe (the plugin) update
>>> what's the details tag? It's an HTML element that you can click on to hide/reveal a block of text: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/details There's a handy TW implementation here: https://tid.li/tw5/plugins.html#%24%3A%2Fplugins%2Ftelmiger%2Fdetails It was added recently enough that it is not supported by Internet Explorer. It's just one example, I'm sure there are all sorts of things that have been added to new browsers which won't work in older ones. On Monday, 14 June 2021 at 19:31:48 UTC+1 james.w@gmail.com wrote: > what's the details tag? > > On Monday, 14 June 2021 at 19:04:51 UTC+1 Si wrote: > >> Hi James, >> >> >>> I don't think it's true that you need Internet Explorer for any of >> this, it's runs under the mshta.exe which should ship with windows. >> >> It seems that mshta.exe relies on the Internet Explorer engine (not that >> I know what that means...): >> https://en.wikipedia.org/wiki/HTML_Application#Execution >> >> Anyway a wiki running as an hta app looks just like it does when running >> in IE, and more recent web stuff doesn't work (e.g. the details tag). My >> main wiki won't even open in IE (or as an hta) due to some of the plugins I >> have installed. >> >> >>> if you are still interested i can maybe help look at any issues you >> are hitting >> >> Thank you! Though I've now figured out my mistake: I was using a folder >> for twexe_cmd that didn't exist! Works as expected now. >> >> >>> I don't knoe if this is still needed but i have another plugin >> $:/plugins/welford/htalink/link.js which makes the wiki open links in the >> default browser. >> >> I didn't install that plugin and it still works, but I only did a simple >> test. >> >> On Monday, 14 June 2021 at 17:40:08 UTC+1 james.w@gmail.com wrote: >> >>> Hey Si, I don't think it's true that you need Internet Explorer for any >>> of this, it's runs under the mshta.exe which should ship with windows. I >>> certainly don't have IE installed on my system - but you will need windows. >>> >>> I don't knoe if this is still needed but i have another plugin >>> $:/plugins/welford/htalink/link.js which makes the wiki open links in the >>> default browser. >>> >>> if you are still interested i can maybe help look at any issues you are >>> hitting: Excuse the crude picture but setting up a twexe should be pretty >>> simple. this one opens calc and then is linked to twice in another doc, >>> first as it is and then a second time with overridden params. >>> >>> [image: asdf.png] >>> >>> On Monday, 14 June 2021 at 16:17:21 UTC+1 Si wrote: >>> Hi James thanks for the reply. Just trying it I actually can't even get it to work with a batch file ("The filename, directory name, or volume label syntax is incorrect"). This doesn't matter however because I also now realize that .hta will use internet explorer to run the app, which means unfortunately I can't use this for my wiki anyway. On Sunday, 13 June 2021 at 20:09:25 UTC+1 james.w@gmail.com wrote: > Just tested and unfortunately not right now. > > I have a few places where i call > WshShell.Run( "cmd /c " + path + " " + args ); From a quick google making > the "cmd /c" part call "powershell -File " maybe with some other settings > like -executionpolicy unrestricted. > > I know next to nothing about powershell though. > > if you take a look at > http://welford.github.io/#%24%3A%2Fplugins%2Fwelford%2Ftwexe%2Ftwexe.js > specifically > TWExeWidget.prototype.runTiddler = function (event) { > TWExeWidget.prototype.openFile = function (event) { > > and can give me a working string format for powershell scripts i can > update the plugin to provide the shell in which it will run via a field. > e.g. twexe_shell: powershell, so that we can support both. > > > > On Sunday, 13 June 2021 at 19:18:45 UTC+1 Si wrote: > >> Thanks James I did not know this existed! I was looking for something >> similar a while ago. >> >> Can you use it to run PowerShell scripts? >> On Tuesday, 4 May 2021 at 13:31:27 UTC+1 james.w@gmail.com wrote: >> >>> Incase any windows/hta users still use this: >>> >>> I've updated this plugin. the source is here: >>> https://github.com/welford/twexe and you can grab a copy of the >>> updated plugin from http://welford.github.io/ >>> >>> The big change is that you can run the contents of a tiddler as a >>> batch file, which should help keep things portable (between machines / >>> environments, not cross platform). >>> >>> It will create a temporary twexe.bat file in %TEMP% fill it with the >>> contents of the tiddler and then run it. You can change the default >>> temporary location via $:/plugins/welford/twexe/tmpdir >>> >>> in the attached image i have two examples, one will
[tw5] Re: twexe (the plugin) update
what's the details tag? On Monday, 14 June 2021 at 19:04:51 UTC+1 Si wrote: > Hi James, > > >>> I don't think it's true that you need Internet Explorer for any of > this, it's runs under the mshta.exe which should ship with windows. > > It seems that mshta.exe relies on the Internet Explorer engine (not that I > know what that means...): > https://en.wikipedia.org/wiki/HTML_Application#Execution > > Anyway a wiki running as an hta app looks just like it does when running > in IE, and more recent web stuff doesn't work (e.g. the details tag). My > main wiki won't even open in IE (or as an hta) due to some of the plugins I > have installed. > > >>> if you are still interested i can maybe help look at any issues you > are hitting > > Thank you! Though I've now figured out my mistake: I was using a folder > for twexe_cmd that didn't exist! Works as expected now. > > >>> I don't knoe if this is still needed but i have another plugin > $:/plugins/welford/htalink/link.js which makes the wiki open links in the > default browser. > > I didn't install that plugin and it still works, but I only did a simple > test. > > On Monday, 14 June 2021 at 17:40:08 UTC+1 james.w@gmail.com wrote: > >> Hey Si, I don't think it's true that you need Internet Explorer for any >> of this, it's runs under the mshta.exe which should ship with windows. I >> certainly don't have IE installed on my system - but you will need windows. >> >> I don't knoe if this is still needed but i have another plugin >> $:/plugins/welford/htalink/link.js which makes the wiki open links in the >> default browser. >> >> if you are still interested i can maybe help look at any issues you are >> hitting: Excuse the crude picture but setting up a twexe should be pretty >> simple. this one opens calc and then is linked to twice in another doc, >> first as it is and then a second time with overridden params. >> >> [image: asdf.png] >> >> On Monday, 14 June 2021 at 16:17:21 UTC+1 Si wrote: >> >>> Hi James thanks for the reply. Just trying it I actually can't even get >>> it to work with a batch file ("The filename, directory name, or volume >>> label syntax is incorrect"). This doesn't matter however because I also now >>> realize that .hta will use internet explorer to run the app, which means >>> unfortunately I can't use this for my wiki anyway. >>> >>> On Sunday, 13 June 2021 at 20:09:25 UTC+1 james.w@gmail.com wrote: >>> Just tested and unfortunately not right now. I have a few places where i call WshShell.Run( "cmd /c " + path + " " + args ); From a quick google making the "cmd /c" part call "powershell -File " maybe with some other settings like -executionpolicy unrestricted. I know next to nothing about powershell though. if you take a look at http://welford.github.io/#%24%3A%2Fplugins%2Fwelford%2Ftwexe%2Ftwexe.js specifically TWExeWidget.prototype.runTiddler = function (event) { TWExeWidget.prototype.openFile = function (event) { and can give me a working string format for powershell scripts i can update the plugin to provide the shell in which it will run via a field. e.g. twexe_shell: powershell, so that we can support both. On Sunday, 13 June 2021 at 19:18:45 UTC+1 Si wrote: > Thanks James I did not know this existed! I was looking for something > similar a while ago. > > Can you use it to run PowerShell scripts? > On Tuesday, 4 May 2021 at 13:31:27 UTC+1 james.w@gmail.com wrote: > >> Incase any windows/hta users still use this: >> >> I've updated this plugin. the source is here: >> https://github.com/welford/twexe and you can grab a copy of the >> updated plugin from http://welford.github.io/ >> >> The big change is that you can run the contents of a tiddler as a >> batch file, which should help keep things portable (between machines / >> environments, not cross platform). >> >> It will create a temporary twexe.bat file in %TEMP% fill it with the >> contents of the tiddler and then run it. You can change the default >> temporary location via $:/plugins/welford/twexe/tmpdir >> >> in the attached image i have two examples, one will run my local >> node.js tw, the other just an example batch file that prints hello and >> the >> first arg passed to it. >> >> -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/37591e72-fa3a-4788-a8ec-8dff6f3747ban%40googlegroups.com.
[tw5] Re: twexe (the plugin) update
Hi James, >>> I don't think it's true that you need Internet Explorer for any of this, it's runs under the mshta.exe which should ship with windows. It seems that mshta.exe relies on the Internet Explorer engine (not that I know what that means...): https://en.wikipedia.org/wiki/HTML_Application#Execution Anyway a wiki running as an hta app looks just like it does when running in IE, and more recent web stuff doesn't work (e.g. the details tag). My main wiki won't even open in IE (or as an hta) due to some of the plugins I have installed. >>> if you are still interested i can maybe help look at any issues you are hitting Thank you! Though I've now figured out my mistake: I was using a folder for twexe_cmd that didn't exist! Works as expected now. >>> I don't knoe if this is still needed but i have another plugin $:/plugins/welford/htalink/link.js which makes the wiki open links in the default browser. I didn't install that plugin and it still works, but I only did a simple test. On Monday, 14 June 2021 at 17:40:08 UTC+1 james.w@gmail.com wrote: > Hey Si, I don't think it's true that you need Internet Explorer for any of > this, it's runs under the mshta.exe which should ship with windows. I > certainly don't have IE installed on my system - but you will need windows. > > I don't knoe if this is still needed but i have another plugin > $:/plugins/welford/htalink/link.js which makes the wiki open links in the > default browser. > > if you are still interested i can maybe help look at any issues you are > hitting: Excuse the crude picture but setting up a twexe should be pretty > simple. this one opens calc and then is linked to twice in another doc, > first as it is and then a second time with overridden params. > > [image: asdf.png] > > On Monday, 14 June 2021 at 16:17:21 UTC+1 Si wrote: > >> Hi James thanks for the reply. Just trying it I actually can't even get >> it to work with a batch file ("The filename, directory name, or volume >> label syntax is incorrect"). This doesn't matter however because I also now >> realize that .hta will use internet explorer to run the app, which means >> unfortunately I can't use this for my wiki anyway. >> >> On Sunday, 13 June 2021 at 20:09:25 UTC+1 james.w@gmail.com wrote: >> >>> Just tested and unfortunately not right now. >>> >>> I have a few places where i call >>> WshShell.Run( "cmd /c " + path + " " + args ); From a quick google making >>> the "cmd /c" part call "powershell -File " maybe with some other settings >>> like -executionpolicy unrestricted. >>> >>> I know next to nothing about powershell though. >>> >>> if you take a look at >>> http://welford.github.io/#%24%3A%2Fplugins%2Fwelford%2Ftwexe%2Ftwexe.js >>> specifically >>> TWExeWidget.prototype.runTiddler = function (event) { >>> TWExeWidget.prototype.openFile = function (event) { >>> >>> and can give me a working string format for powershell scripts i can >>> update the plugin to provide the shell in which it will run via a field. >>> e.g. twexe_shell: powershell, so that we can support both. >>> >>> >>> >>> On Sunday, 13 June 2021 at 19:18:45 UTC+1 Si wrote: >>> Thanks James I did not know this existed! I was looking for something similar a while ago. Can you use it to run PowerShell scripts? On Tuesday, 4 May 2021 at 13:31:27 UTC+1 james.w@gmail.com wrote: > Incase any windows/hta users still use this: > > I've updated this plugin. the source is here: > https://github.com/welford/twexe and you can grab a copy of the > updated plugin from http://welford.github.io/ > > The big change is that you can run the contents of a tiddler as a > batch file, which should help keep things portable (between machines / > environments, not cross platform). > > It will create a temporary twexe.bat file in %TEMP% fill it with the > contents of the tiddler and then run it. You can change the default > temporary location via $:/plugins/welford/twexe/tmpdir > > in the attached image i have two examples, one will run my local > node.js tw, the other just an example batch file that prints hello and > the > first arg passed to it. > > -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/471d9174-20e9-472b-b91c-d903ddf3ab0en%40googlegroups.com.
[tw5] Re: twexe (the plugin) update
looks like we do still use htalink, i probably should just fold it into twexe On Monday, 14 June 2021 at 17:40:08 UTC+1 James Anderson wrote: > Hey Si, I don't think it's true that you need Internet Explorer for any of > this, it's runs under the mshta.exe which should ship with windows. I > certainly don't have IE installed on my system - but you will need windows. > > I don't knoe if this is still needed but i have another plugin > $:/plugins/welford/htalink/link.js which makes the wiki open links in the > default browser. > > if you are still interested i can maybe help look at any issues you are > hitting: Excuse the crude picture but setting up a twexe should be pretty > simple. this one opens calc and then is linked to twice in another doc, > first as it is and then a second time with overridden params. > > [image: asdf.png] > > On Monday, 14 June 2021 at 16:17:21 UTC+1 Si wrote: > >> Hi James thanks for the reply. Just trying it I actually can't even get >> it to work with a batch file ("The filename, directory name, or volume >> label syntax is incorrect"). This doesn't matter however because I also now >> realize that .hta will use internet explorer to run the app, which means >> unfortunately I can't use this for my wiki anyway. >> >> On Sunday, 13 June 2021 at 20:09:25 UTC+1 james.w@gmail.com wrote: >> >>> Just tested and unfortunately not right now. >>> >>> I have a few places where i call >>> WshShell.Run( "cmd /c " + path + " " + args ); From a quick google making >>> the "cmd /c" part call "powershell -File " maybe with some other settings >>> like -executionpolicy unrestricted. >>> >>> I know next to nothing about powershell though. >>> >>> if you take a look at >>> http://welford.github.io/#%24%3A%2Fplugins%2Fwelford%2Ftwexe%2Ftwexe.js >>> specifically >>> TWExeWidget.prototype.runTiddler = function (event) { >>> TWExeWidget.prototype.openFile = function (event) { >>> >>> and can give me a working string format for powershell scripts i can >>> update the plugin to provide the shell in which it will run via a field. >>> e.g. twexe_shell: powershell, so that we can support both. >>> >>> >>> >>> On Sunday, 13 June 2021 at 19:18:45 UTC+1 Si wrote: >>> Thanks James I did not know this existed! I was looking for something similar a while ago. Can you use it to run PowerShell scripts? On Tuesday, 4 May 2021 at 13:31:27 UTC+1 james.w@gmail.com wrote: > Incase any windows/hta users still use this: > > I've updated this plugin. the source is here: > https://github.com/welford/twexe and you can grab a copy of the > updated plugin from http://welford.github.io/ > > The big change is that you can run the contents of a tiddler as a > batch file, which should help keep things portable (between machines / > environments, not cross platform). > > It will create a temporary twexe.bat file in %TEMP% fill it with the > contents of the tiddler and then run it. You can change the default > temporary location via $:/plugins/welford/twexe/tmpdir > > in the attached image i have two examples, one will run my local > node.js tw, the other just an example batch file that prints hello and > the > first arg passed to it. > > -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/11c8dd5a-ae25-4a8c-9145-82cba372e6f8n%40googlegroups.com.
[tw5] Re: twexe (the plugin) update
Hey Si, I don't think it's true that you need Internet Explorer for any of this, it's runs under the mshta.exe which should ship with windows. I certainly don't have IE installed on my system - but you will need windows. I don't knoe if this is still needed but i have another plugin $:/plugins/welford/htalink/link.js which makes the wiki open links in the default browser. if you are still interested i can maybe help look at any issues you are hitting: Excuse the crude picture but setting up a twexe should be pretty simple. this one opens calc and then is linked to twice in another doc, first as it is and then a second time with overridden params. [image: asdf.png] On Monday, 14 June 2021 at 16:17:21 UTC+1 Si wrote: > Hi James thanks for the reply. Just trying it I actually can't even get it > to work with a batch file ("The filename, directory name, or volume label > syntax is incorrect"). This doesn't matter however because I also now > realize that .hta will use internet explorer to run the app, which means > unfortunately I can't use this for my wiki anyway. > > On Sunday, 13 June 2021 at 20:09:25 UTC+1 james.w@gmail.com wrote: > >> Just tested and unfortunately not right now. >> >> I have a few places where i call >> WshShell.Run( "cmd /c " + path + " " + args ); From a quick google making >> the "cmd /c" part call "powershell -File " maybe with some other settings >> like -executionpolicy unrestricted. >> >> I know next to nothing about powershell though. >> >> if you take a look at >> http://welford.github.io/#%24%3A%2Fplugins%2Fwelford%2Ftwexe%2Ftwexe.js >> specifically >> TWExeWidget.prototype.runTiddler = function (event) { >> TWExeWidget.prototype.openFile = function (event) { >> >> and can give me a working string format for powershell scripts i can >> update the plugin to provide the shell in which it will run via a field. >> e.g. twexe_shell: powershell, so that we can support both. >> >> >> >> On Sunday, 13 June 2021 at 19:18:45 UTC+1 Si wrote: >> >>> Thanks James I did not know this existed! I was looking for something >>> similar a while ago. >>> >>> Can you use it to run PowerShell scripts? >>> On Tuesday, 4 May 2021 at 13:31:27 UTC+1 james.w@gmail.com wrote: >>> Incase any windows/hta users still use this: I've updated this plugin. the source is here: https://github.com/welford/twexe and you can grab a copy of the updated plugin from http://welford.github.io/ The big change is that you can run the contents of a tiddler as a batch file, which should help keep things portable (between machines / environments, not cross platform). It will create a temporary twexe.bat file in %TEMP% fill it with the contents of the tiddler and then run it. You can change the default temporary location via $:/plugins/welford/twexe/tmpdir in the attached image i have two examples, one will run my local node.js tw, the other just an example batch file that prints hello and the first arg passed to it. -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/9d492d4d-1f5d-4860-9080-fb4725764177n%40googlegroups.com.
[tw5] Re: twexe (the plugin) update
Hi James thanks for the reply. Just trying it I actually can't even get it to work with a batch file ("The filename, directory name, or volume label syntax is incorrect"). This doesn't matter however because I also now realize that .hta will use internet explorer to run the app, which means unfortunately I can't use this for my wiki anyway. On Sunday, 13 June 2021 at 20:09:25 UTC+1 james.w@gmail.com wrote: > Just tested and unfortunately not right now. > > I have a few places where i call > WshShell.Run( "cmd /c " + path + " " + args ); From a quick google making > the "cmd /c" part call "powershell -File " maybe with some other settings > like -executionpolicy unrestricted. > > I know next to nothing about powershell though. > > if you take a look at > http://welford.github.io/#%24%3A%2Fplugins%2Fwelford%2Ftwexe%2Ftwexe.js > specifically > TWExeWidget.prototype.runTiddler = function (event) { > TWExeWidget.prototype.openFile = function (event) { > > and can give me a working string format for powershell scripts i can > update the plugin to provide the shell in which it will run via a field. > e.g. twexe_shell: powershell, so that we can support both. > > > > On Sunday, 13 June 2021 at 19:18:45 UTC+1 Si wrote: > >> Thanks James I did not know this existed! I was looking for something >> similar a while ago. >> >> Can you use it to run PowerShell scripts? >> On Tuesday, 4 May 2021 at 13:31:27 UTC+1 james.w@gmail.com wrote: >> >>> Incase any windows/hta users still use this: >>> >>> I've updated this plugin. the source is here: >>> https://github.com/welford/twexe and you can grab a copy of the updated >>> plugin from http://welford.github.io/ >>> >>> The big change is that you can run the contents of a tiddler as a batch >>> file, which should help keep things portable (between machines / >>> environments, not cross platform). >>> >>> It will create a temporary twexe.bat file in %TEMP% fill it with the >>> contents of the tiddler and then run it. You can change the default >>> temporary location via $:/plugins/welford/twexe/tmpdir >>> >>> in the attached image i have two examples, one will run my local node.js >>> tw, the other just an example batch file that prints hello and the first >>> arg passed to it. >>> >>> -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/866f000c-a030-4294-8d3d-fadece727342n%40googlegroups.com.
[tw5] Re: twexe (the plugin) update
Just tested and unfortunately not right now. I have a few places where i call WshShell.Run( "cmd /c " + path + " " + args ); From a quick google making the "cmd /c" part call "powershell -File " maybe with some other settings like -executionpolicy unrestricted. I know next to nothing about powershell though. if you take a look at http://welford.github.io/#%24%3A%2Fplugins%2Fwelford%2Ftwexe%2Ftwexe.js specifically TWExeWidget.prototype.runTiddler = function (event) { TWExeWidget.prototype.openFile = function (event) { and can give me a working string format for powershell scripts i can update the plugin to provide the shell in which it will run via a field. e.g. twexe_shell: powershell, so that we can support both. On Sunday, 13 June 2021 at 19:18:45 UTC+1 Si wrote: > Thanks James I did not know this existed! I was looking for something > similar a while ago. > > Can you use it to run PowerShell scripts? > On Tuesday, 4 May 2021 at 13:31:27 UTC+1 james.w@gmail.com wrote: > >> Incase any windows/hta users still use this: >> >> I've updated this plugin. the source is here: >> https://github.com/welford/twexe and you can grab a copy of the updated >> plugin from http://welford.github.io/ >> >> The big change is that you can run the contents of a tiddler as a batch >> file, which should help keep things portable (between machines / >> environments, not cross platform). >> >> It will create a temporary twexe.bat file in %TEMP% fill it with the >> contents of the tiddler and then run it. You can change the default >> temporary location via $:/plugins/welford/twexe/tmpdir >> >> in the attached image i have two examples, one will run my local node.js >> tw, the other just an example batch file that prints hello and the first >> arg passed to it. >> >> -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/49698bb3-ce58-4ac8-9278-35556d1d4a16n%40googlegroups.com.
[tw5] Re: twexe (the plugin) update
Thanks James I did not know this existed! I was looking for something similar a while ago. Can you use it to run PowerShell scripts? On Tuesday, 4 May 2021 at 13:31:27 UTC+1 james.w@gmail.com wrote: > Incase any windows/hta users still use this: > > I've updated this plugin. the source is here: > https://github.com/welford/twexe and you can grab a copy of the updated > plugin from http://welford.github.io/ > > The big change is that you can run the contents of a tiddler as a batch > file, which should help keep things portable (between machines / > environments, not cross platform). > > It will create a temporary twexe.bat file in %TEMP% fill it with the > contents of the tiddler and then run it. You can change the default > temporary location via $:/plugins/welford/twexe/tmpdir > > in the attached image i have two examples, one will run my local node.js > tw, the other just an example batch file that prints hello and the first > arg passed to it. > > -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/f8a5d4af-5409-4c8a-8f3e-82f516289309n%40googlegroups.com.