I forget that a lot of people find script files something mysterious. In 
the early days before the registry, everyone using a computer had to know 
about bat files when doing software installs. 

Here's all that's needed to launch TW as an app.

Put this script as a text file in your default download directory and name 
as "launch_tw.ps1"

param([string]$stem="foo", [string]$dir="")
$copyme = ls $stem*.html | sort LastWriteTime | select -last 1
$copyme = $copyme.FullName
Copy-Item $copyme -Destination $dir\$stem.html
Invoke-Item $dir\$stem.html

For each TW you want to run, create a single line script. Here's an example 
named tw_bible.bat:

powershell -executionpolicy bypass -File .\launch_tw.ps1 -stem "bible" -dir 
d:\data\apps\TW_Ant

The "stem" name is the unique first part of the name (e.g. "bible" if your 
tw is bible.html). The dir is the path to the directory where you want to 
launch your TW from. If this is the first time using this system, copy your 
most recent TW file to the download directory.

Do a right click on the bat file and create a shortcut. Drag the shortcut 
to your desktop.

Now, whenever you want to launch your TW, just double-click on the 
shortcut. Your default browser will come up with the TW in a tab.

That's all there's to it. You launch your TW like you would any other 
desktop app. Once it's loaded in your default browser, you can save with 
the default mechanism, knowing the next time you want to run the tw you can 
just click on the start-up icon. 

None of this is harder to do than installing an executable and configuring 
a server. The scripts are simple enough that they could be typed out by 
hand if you were on a system cut off from the net.  

Caveats: As always, be sure to make a backup of your TW file, especially 
the first time you use this (if you're still using the TiddlyFox plugin, 
this approach might over-write your most recent TW file from a previous 
file in your download directory.) At the end of a session, if you need your 
file to synch somewhere (e.g. it's in a dropbox folder) then just run the 
shortcut again to copy over the most recent version. There might be more 
tweaking -- I don't have any beta testers yet! ;-)  I used it for a week 
and everything was fine (I'm using TiddlyFox as long as I can).


Mark

On Monday, September 18, 2017 at 10:06:53 PM UTC-7, Mark S. wrote:
>
> I don't understand your objection in #2. You're saying you'd rather 
> install an entire server or application on your system rather than deal 
> with a 5-line batch file?
>
> On Monday, September 18, 2017 at 9:22:36 PM UTC-7, JWHoneycutt wrote:
>>
>> Thank you all for the thoughtful replies.
>>
>> It seems as though there is confusion about the best way forward.
>>
>> 1) TiddlyFox is going away sometime - so I don't want to get too enamored 
>> with it (Yes it is an installed add-on (Legacy) that does not work for me 
>> now)
>> 2) @Mark S - The beauty of a solution that works every time is ideal, 
>> except that you then proceed to explain that the default save has a "pain 
>> in the ass" character to it involving don't forget to's or batch like 
>> this...
>> 3) I have tried NoteSelf, and lost enough info due to my lack of 
>> understanding how simple it is - "just use it" becomes "just keep retyping 
>> the same tiddlers"
>> 4) I am totally willing to jump away from a single file system and into 
>> Node.JS, but as a newbie it acts strange, pulling up things I didn't mean 
>> to be in this directory... and I just don't understand it yet (but I think 
>> I would like it)
>> 5) TiddlyDesktop is my one and only savior - it is the ONLY way I 
>> currently know how to reliably update a tiddler, save to Dropbox, and find 
>> it later.
>>
>> I can live with that.  the only problem is when I link to an external 
>> TW5.html file, it loads it in FireFox, and I have to remember NOT TO UPDATE 
>> IT THERE - use only for reference. If I want to start typing, I have to 
>> remember to launch it directly from TiddlyDesktop independently.
>>
>> Does this thinking make sense?
>>
>

-- 
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/b87aeb1e-cab0-4684-8880-ca187a0085bd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to