> Ideally, I would like to create several of these kinds of Firefox
> bookmarks in folders then periodically "Open All in Tabs". The result
> would be that each bookmark would open a tab and download the file. If
> there is a way to have the empty tab closed automatically then I would
> be even happier.
If a simple URL (or even a bookmarklet) could be made to automatically
download and *overwrite* a file on your local system, it would create
a security hole big enough to drive a fleet of trucks through!
Server-side transfer scripts (e.g, download.php) typically work by
sending the file from the server with additional HTTP headers that
tell the browser how to handle the received file.
Normally, the browser will simply retrieve and *display* HTML files,
rather than saving them to your filesystem. However, if the server
adds the following META tag:
Content-disposition:attachment; filename="..."
then the transmitted file triggers the browser's standard 'download-
and-save' dialog box, which explicitly asks the user to confirm the
download and tell it where to put the file (which would probably be
adequate for your purposes).
One potential solution that could achieve the results you want would
be to bypass the browser entirely, and install some kind of command-
line based "wget" program on your local system. wget ('web get') is a
common unix utility that fetches remote files via http: and
immediately saves them locally, without attempting to invoke a browser
to parse and render the content. You could put several wget commands
into a 'batch file' and then invoke that to fetch all the file updates
in one step.
A more TW-centric solution that doesn't require you to find and
install an additional application, might be to add this plugin:
http://www.TiddlyTools.com/#LoadTiddlersPlugin
into each of the documents in question. Then, you could embed
<<loadTiddlers URL>>
into a tiddler called [[GetUpdates]] and invoke the local document
using:
file:///.../filename.html/#GetUpdates
so that the tiddler is displayed and the macro is triggered as soon as
the document is opened in the browser. If any new/revised tiddlers
are imported, you then simply save the document (using the 'save
changes' command in the TW sidebar) and you are all set.
Although this approach isn't 100% automatic, it is pretty close... and
enforces it just enough user-interaction to ensure that files aren't
written to your local system without an explicit review decision on
your part.
enjoy,
-e
Eric Shulman
TiddlyTools / ELS Design Studios
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/tiddlywiki?hl=en
-~----------~----~----~----~------~----~------~--~---