Opening Word file directly from local folder in TiddlyWiki?

2,547 views
Skip to first unread message

Julie

unread,
Apr 13, 2012, 10:03:17 AM4/13/12
to TiddlyWiki
I've been playing with a code I found somewhere to open a Word file
directly, which looks like this:
[[Simulation 1|file//Simulation1.docx]]

where "Simulation 1" before the | is the Tiddler text
and the information after file is the document I want to open.

When I do this (with or without the extension), I get the error: File
not found. Firefox can't find the file.

Is there a way to have TiddlyWiki open a Word file directly from the
local folder where someone can click on the file and have it open
automatically (not save as)?

Thanks in advance for your help!

skye riquelme

unread,
Apr 14, 2012, 2:15:49 PM4/14/12
to TiddlyWiki
Hi Julie

I am not an expert, but maybe I can shed some light on this.

Firstly, your syntax is ok. But the file address is not. You can use
relative file addresses like "/SubPasta/file.html" - which gets the
file.html in the sub-folder "SubPasta"...........ou maybe "../
BrotherPasta/file.html" - which gets the file.html from a folder
parellel to one containing your TW. OR you can use full
adresses...something like "file:///C:/Users/Name/Documents/TWFolder/
file.html" (obviously I am using a windows file structure!!!!). SO the
syntax becomes [[simulation 1|/folderName/file.html]]

Secondly..... in the above cases your browser (I use FF) will open
"file.html" probably in a new window (depending on your browser
settings) because it (the browser) knows about .html files and knows
what to do with them. But does your browser know what to do with
a .docx file??? You may be able to set your browser settings to
recognise this file extension.... it depends on your browsers
ability.

For example, as a teacher I work a lot with presentations...but they
are a pain in relation to TW....as I have yet to figure out how to get
FF to understand OpenOffice extensions. So my simple work-around is to
export my completed presentations into PDF format..... which all (?)
browsers know how to read. So I can use [[myPresentation|Folder/
present.pdf]] which opens the PDF file in a separate window. Or, what
I normally use is something like "<html><iframe src="Folder/
present.pdf" width=100% height=500></iframe></html>" which opens the
pdf file directly inside the tiddler.....so I dont even have to leave
the TW environment!!!

Hope that is both useful and (at least basically) correct

Yours
Skye

Julie

unread,
Apr 16, 2012, 7:53:52 AM4/16/12
to tiddl...@googlegroups.com
Thanks, Skye!  I appreciate your response and at least I know how to make it find the file. :)

I was hoping to do something in Word and have it open it because the file needs to stay editable, so maybe I'm going to try another avenue.

Måns

unread,
Apr 16, 2012, 10:30:31 AM4/16/12
to TiddlyWiki
Hi Julie


> Is there a way to have TiddlyWiki open a Word file directly from the
> local folder where someone can click on the file and have it open
> automatically (not save as)?

Eric made http://www.tiddlytools.com/#ShowLocalDirectory which is very
capable of browsing files and directories (in Windows and Linux - I
guess it will work on a Mac as well)..
When you click a file link - it will try to open it in an iframe.
It works well for images and plain textfiles - and as Skye says, some
browsers support pdf's as well...

If you want to open an application (Word for example) directly from
your TW there's a plugin for that as well (
http://www.remotely-helpful.com/TiddlyWiki/LaunchApplication.html#LaunchApplicationPlugin
), however the macro parameter needs some tweaking to open a file with
an application - and I'm no expert....
You'll have to test it out yourself to find out which parameters are
neccesary...

A combination of ShowLocalDirectory & LaunchApplicationPlugin (w.
automatic recognition of mime-types would be awesome...)

Happy hacking :-)

Cheers Måns Mårtensson

julien23

unread,
Apr 17, 2012, 3:37:10 AM4/17/12
to TiddlyWiki
Hi all

I use a lot TW to link local editable files (CAD, pictures...)

FileDropPlugin is my best tool

Your TW should be then at the root level of your files

regards

Julien

On Apr 16, 4:30 pm, Måns <humam...@gmail.com> wrote:
> Hi Julie
>
> > Is there a way to have TiddlyWiki open a Word file directly from the
> > local folder where someone can click on the file and have it open
> > automatically (not save as)?
>
> Eric madehttp://www.tiddlytools.com/#ShowLocalDirectorywhich is very
> capable of browsing files and directories (in Windows and Linux - I
> guess it will work on a Mac as well)..
> When you click a file link - it will try to open it in an iframe.
> It works well for images and plain textfiles - and as Skye says, some
> browsers support pdf's as well...
>
> If you want to open an application (Word for example) directly from
> your TW there's a plugin for that as well (http://www.remotely-helpful.com/TiddlyWiki/LaunchApplication.html#Lau...

sklpns

unread,
Apr 17, 2012, 10:00:17 AM4/17/12
to TiddlyWiki
hey all

this might be of some use as far as linking to files / folders within
a tw goes (at least under win xp)

http://blog.verg.es/2007/08/sendto-clipboard-coolness-tiddlywiki.html

it creates two new items in the "Send To" menu (accessible with right
click on the desired file in windows explorer). The first (clipboard -
file url) copies the file (or folder) url to the clipboard so it can
then be pasted to tiddler as a link to the selected file/folder.

it can also be customized to one's liking: in my case I've set a
target attribute in the .hta file code, so that all the linked files
open within an i-frame embedded in the tw.

@skye

maybe exporting open office files to pdf just for the shake of making
them browser readable could be avoided. For me the following seem to
work: in the open office options menu (think you can find that in any
of the oo applications) there's a tab called network or internet
(can't say for sure as mine's not an english installation). Under that
you should see the option to use the open office plugin for firefox by
checking the relevant checkbox.

Having done that, in the firefox options menu and in the applications
tab make sure that all the open office related entries (or the ones
you want i suppose) are set to open with the open office plugin (if
they aren't try setting them manually using the scroll menu on the
right).

This should result in open office files being viewed within firefox.
If the relevant links are set to open in an iframe embedded in the tw
one doesn't even have to exit the tw environment at all. Only problem
is that recent firefox versions have some visibility problems with
open office files, especially within an i-frame, but nothing too
dreary I suppose. In any case and until this gets somehow resolved I;m
using ff portable version 3.6.24 for a project that relies heavily on
showing oo files within an i-frame. I'm suspecting that showing the
files in a new tab would not present major visibility issues.

Furthermore: these guys here

http://ubuntuforums.org/showthread.php?s=d5644fc05b95a88eea5d17e70d694d87&t=94384

explain how to use the open office firefox plugin to also view
Microsoft office files within firefox! (see both pages of the thread)

hope this makes sense and is somewhat useful

cheers
sklpns





skye riquelme

unread,
Apr 17, 2012, 2:38:14 PM4/17/12
to TiddlyWiki
Hi sklpns e Mans

Hey guys thanks for those suggestions. As Mans said the
LaunchApplicationPLugin is quite a handy plugin and I have it working
well. As my students normally access the courses through Dropbox....I
can put applications that they may not have installed (like Freemind
mind-mapping) in a shared Dropbop folder and have LauchApps....open
it....so now they can run the program, even though they dont have it
installed in their computer.....

And sklpns...thnks for those directions about OpenOffice....I´ll check
that out imediately. Although I am not worried about using the iframe/
pdf route.......remember the TW is to be viewed by students...so a PDF
is great for them...and at the same time means that they cant mess
around with my original presentation....so suits me. And in fact I
starting to use TW itself as my presentation package.... which makes
life even easier...and TW as a presenter has some great
advantages......

Thanks
Skye
> http://ubuntuforums.org/showthread.php?s=d5644fc05b95a88eea5d17e70d69...

Måns

unread,
Apr 17, 2012, 4:42:22 PM4/17/12
to TiddlyWiki
Hi Skye

> And sklpns...thnks for those directions about OpenOffice....I´ll check
> that out imediately.

I've just tried it with Iceweasel (Firefox on Debian) & LibreOffice on
Debian Squeeze (Linux) - It behaves as if it *should* work - opens a
new tab and blanks the browser window etc - however I'm still not
getting it to show a doc or docx documents... It would be quite
fantasic, so I keep on trying...
I wonder if the much lighter yet very capable AbiWord might be able to
do the trick ....

>And in fact I
> starting to use TW itself as my presentation package.... which makes
> life even easier...and TW as a presenter has some great
> advantages......

I followed many of your questions related to your work with TW as a
presenter..
Will you consider to publish an example of what you've accomplished at
some point??
I believe it would be very usefull for everyone here...
There is some demand for predesigned/taylored webapps based on
TiddlyWiki - and I believe that examples, which have proven their
quality in real life use, ought to find their way to these
threads ...
I'd love to hear some of your thoughts on how TiddlyWiki "as a
presenter has some great advantages" - and (if possible) with TW-
examples...

Cheers Måns Mårtensson

twgrp

unread,
Apr 21, 2012, 2:31:30 PM4/21/12
to TiddlyWiki
If you haven't already considered it, but something clod based like
Google Docs is intended for possible collaboration over the web so it
is fairly easy to include it in a TW (eg via an iframe). Edit-
permissions are set from within the service itself.


<:-)
Reply all
Reply to author
Forward
0 new messages