That's it.
To those of you wondering "what's this all about?", here it goes some hints and features (v9):
-It's text-only oriented. So the "extension" field will allow you to produce .diz, .nfo, .txt and other text files. "No extension" is not allowed - we're aware of this limitation, but it's a way to avoid potential conflicts with folders. If you want a non-extension file, create and/or edit it as you like but exclude the extension after the job externally to the tool.
-Leaving the "Path" empty will produce content on the current active pane.
-Script can be used in Catalog, UDC (User-Defined Commands), CTB (Custom Toolbar Buttons), "Run Script...", anywhere. It'll produce a "ScriptToolv'X'.ini" file on "<xydata>\Scripts\" containing info used for "reloading" function and some configs, being "X" the current version of the script.
-If you launch the script having a FILE (not work for FOLDER) selected, it'll ask you whether you want to use such file as a base name or not.
-"Convert to CamelCase" will apply camelCasing to the file you want to create; when reloading (if such option is ticked), "Name" will have the camelCased name, not the originally entered name.
Limitation: CamelCase currently fails if a on presence of numbers and punctuation marks such "_" (underscore). Watch out!
-It has a good regexReplace dictionary so you don't have to worry if "Name" contains forbidden characters that could prevent document creation. It applies to both CamelCasing and file name - and it's easy to customize, so foreign language speakers will have option to make it work with their own characters set!
-If you enter a name and for a reason or another you are in doubt of the existence of a file, pressing "View/Edit" will open the file if it's already there in the current path - and you can (of course!) edit the text right off of that window ("View/EDIT"

)! Hitting "Ok" will save the actual file.
-You have option to produce/convert files as ASCII or Unicode (mode "tu", please refer to
this topic to have a better explanation).
-when you click "Write", script will pop a window for you to create your file; in existence of a file with a same name, it'll ask for replacement confirmation. And it'll grab entered "Name" and paste it as an intro/ script comment/document title!, like this:
Code: Select all
//Name of the File Previously Entered in Name Field
This will ignore "camelCase" tick box. If "Name" has a camelCased name, then "Comment" will reflect that too. Ticking "Paste Clipboard" will open the edit window with... guess what?... current clipboard's content!
AUTOMATION, that's what this is all about!
-If you choose "Append", it'll also create a file if non-existent, but files will have a separator and (cool stuff, I'd say!) caret will be waiting for a second paste, so you have always a "two-steps for the price of one", saving you time! Like this: you already have a clipboarded content that will be read and paste into .txt edit field - you don't have to hit "ok" and click "append" again to paste more info - just alt+tab to the source and grab the next piece of info you want, go back to Data Mining Tool and... paste it there, then clicking Ok you'll have two for the price of one.
Limitation: for content that needs to follow ordination, you'll have to edit such stuff a bit, as it currently offers:
Code: Select all
| << caret
==== << separator
<clipboard> << clipboard content already pasted!
...but this is a minor hassle to deal with, huh?
-You may want to edit the separator in this section:
Code: Select all
$textfooter="<crlf><crlf>===============<crlf><crlf>";
...being "===============" the actual, stock separator.
-"Reload Script" is another core feature, for its ability to... reload script after document creation/editing, getting it ready to append more info or start another task. Un-ticking it will shut the script when you click "Ok" on "View/Edit", "Write" or "Append" edit windows. "Cancel" will always load the script's main window again.
-"Ok" on "View/Edit", "Write" or "Append" edit windows can be done via "CTRL+Enter" hotkey.
-Tweak: adjust the size of "name" and "path" manually. Suggested values to have a total usage of the visual field:
Code: Select all
NAME="path" size="60"><br>
NAME="name" size="50"><br>
Currently it does not do the coffee. We'll implement that soon. Also, a "Cafuné Mode" is planned.
Oh. Sorry, guys, you probably won't know what I'm talking about... "Cafuné" is a regionalism for what you foreign (to me) guys generically know as
Personal grooming. But "cafuné" is special...
"
GO FOR IT!", I'd say.