[tw] Re: [TW5] Editor Toolbar - Adding a browse for files button ( [ext[...]] )

2016-07-25 Thread Dragon Cotterill

Hi Bo,

On Monday, 25 July 2016 09:18:15 UTC+1, The Bo wrote:
>
> Any idea or is there already such a plugin?
>

As Jeremy stated, it's almost impossible to get the details to external 
files from inside TW due to the security restrictions of the Browsers.

One of my TW's makes extensive use of external files (.PDFs and images) and 
the only way I could get them integrated was with external batch files.

This is one of my import routines:
@echo off
cd Unsorted
for /f "Tokens=*" %%f in ('dir /l/b/a-d') do (rename "%%f" "%%f")
cd ..

FOR %%A in (Unsorted/*.pdf) DO (
echo ^ >> entries.div
echo ^^|!Name: ^|%%~nA ^| >> entries.div
echo ^|!Author: ^| ^| >> entries.div
echo ^|!Date: ^| ^| >> entries.div
echo [img[./Images/Book.png][./Documents/%%A]] >> entries.div
echo ^^ >> entries.div
)

It is designed for TWC and has a specific layout, but it may suit your 
needs. But what it does is first switch everything in the "Unsorted" 
sub-directory into lowercase (this prevents loads of error where it tries 
to wikify the names of the .PDFs that are imported) before building a file 
with all the names of the PDFs as tiddler titles. The resulting file 
(entries.div) is then placed inside the TW file. When I go through and edit 
all the "Unsorted" tagged entries, TW handles the tidying up of the actual 
tiddlers.



 

-- 
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/4ad7f5e6-6af9-440f-b3f3-97ace3c63b7d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: [TW5] Editor Toolbar - Adding a browse for files button ( [ext[...]] )

2016-07-25 Thread The Bo
Any idea or is there already such a plugin?

-- 
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/516f9491-5619-4ccc-94ec-034a564ab46b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.