On May 13, 11:32 pm, Ash Sangoram <
sango...@gmail.com> wrote:
> Hey all,
> Sorry for this pretty basic question. I have a tiddlywiki hosted on
> Tiddlyspot that contains links to its contained images as an absolute
> position on my main work computerhttp://
ashvin-imac.stanford.edu/TWLabNotebook/
> and I now have moved my image files to a new computer with a new Web
> address as I am retiring the old computer. There must be a way to do
> a find and replace to replace every call to the old image folder on
> the old computer with the new address. The question is what is a good
> free HTML editor that runs on the Mac that will do this without
> screwing up the tiddlywiki?
You can use any *plain text* editor to open your TW document and
perform a global search-and-replace.
> wondering if I could designate a "relative" folder so that the next
> time the images move I wouldn't have to go back and point all the
> calls to the images to the new location. I've thought about uploading
> my images to photobucket or something like that and then calling the
> images from that site on my Wiki...
Give this a try:
http://www.TiddlyTools.com/#ImagePathPlugin
First, change all your image references to be *relative* to the
current directory by removing the server and path portion of the image
references, so that:
[img[
http://ashvin-imac.stanford.edu/TWLabNotebook/someimage.jpg]]
becomes simply:
[img[someimage.jpg]]
Then, create a tiddler called [[ImagePathList]], that defines one or
more alternative file paths that are listed one per line, like this:
-------------
http://ashvin-imac.stanford.edu/TWLabNotebook/
-------------
The paths defined in [[ImagePathList]] can be either relative (e.g.,
"images/") or absolute (e.g., "
http://www.someserver.com/~username/
images/"). The plugin operates by extending the core's parsing of the
[img[...]] syntax so that each path in the list is combined with the
indicated image filename and tested for existence until the file is
located. Of course, when the document if being viewed on-line, it
isn't possible to perform a local file test, so the first alternative
in the ImagePathList is always applied.
For example, using "[img[someimage.jpg]]" and the above sample
[[ImagePathList]], the plugin will simply display:
http://ashvin-imac.stanford.edu/TWLabNotebook/someimage.jpg
Once you have set this up, it is trivial to move your images to a
different location and then update the definition in ImagePathList to
point to that new location.
enjoy,
-e