Queries for Bob #2 -- External Local File Addressing "ID"?

81 views
Skip to first unread message

@TiddlyTweeter

unread,
Sep 30, 2018, 1:02:32 PM9/30/18
to tiddl...@googlegroups.com
Its brilliant to see Bob being able to actually display external local images, which node in simple mode doesn't.

I have an issue I'd like to mention. It basically devolves from the somewhat circuitous route node takes to storing external files. I found it very confusing at first.

Once I set-up "filePathRoot", which is one master directory, I had to figure out how, later, when I come to build a single file TW, how I can copy over all the files for that particular wiki but for no other.

I came up with the idea of having a two character "shorthand ID" for every Wiki which means that later I can copy over all but only the files needed. For instance ... in a wiki about "Fireworks" I declare "fw" as the "ID". Used like this ...

[img[./files/fw/img/fw1034.jpg]]

... where filePathRoot is ...
\bag\PortableApps\twBOB\Wikis\ext

... and the physical on-disk file address is actually ...
\bag\PortableApps\twBOB\Wikis\ext\fw\img\fw1034.jpg

Using Windows (at the moment) I copy over all directories and their files from "fw" and down into a sub-dir to the output wiki at ".\files" (which I have to create as its "virtual" inside node). Its a bit weird creating a directory that doesn't yet exist in output to get it to work, but okay--I would not want to edit the TW to adjust for that.

What I am wondering is whether when you create a new Wiki you can be prompted to define a "shorthand ID" for it to ensure you never forget the base address you need for files so you don't get in a mess? This comes from concern some of my wiki have many images associated with them.

UPDATE: I stupidly forgot to explain why setting a "shorthand ID" is useful. You can use it as a variable that is invoked in a Bob script passed to the OS that tells its where to copy the files from and where to. Also a problem arises if you don't because, if you change the name of the wiki, it becomes unclear where to find them. Basically I (personally) think a set shorthand ID could be useful.

Or do you have other thoughts on this issue?

Best wishes
Josiah

@TiddlyTweeter

unread,
Sep 30, 2018, 1:12:17 PM9/30/18
to TiddlyWiki
For email users please note I just updated my last post in this thread.

Scott Sauyet

unread,
Sep 30, 2018, 6:19:26 PM9/30/18
to TiddlyWiki
@TiddlyTweeter wrote:

> Its brilliant to see Bob being able to actually display external images,
> which node in simple mode doesn't.

I've bee out of this community for some time, so I must be missing something,
either what Bob does, what Node doesn't do, or what "simple mode" is.

I have no trouble including an external image in Tiddlywiki on Node:

```
created: 20180930220911127
modified: 20180930221316661
tags:
title: ImageTest
type: text/vnd.tiddlywiki

```

Is this simply because I'm not using "simple mode" (whatever that is?)

  -- Scott

@TiddlyTweeter

unread,
Oct 3, 2018, 7:29:28 AM10/3/18
to TiddlyWiki
Sorry Scott. I meant local files.
Reply all
Reply to author
Forward
0 new messages