Category Dumper, Copy Categories to Folders

Started by tom, August 20, 2017, 01:44:43 PM

Previous topic - Next topic

tom

First of all a big praise for Imatch.
Imatch is perfect for me as it satisfies all my desires and needs
With respect to an image database.
Recently, the 64bit version of Imatch 2017 installed parallel to testing.
Runs so far perfectly. The performance is much higher for me than in
Imatch 5.8.4.

Unfortunately, the following scripts were not included in Imatch 2017.

1. Category Dumper

I use it to export Keyword categories in the Intendet format, in order to
External processing and backup.
In this case, the unassigned keyword categories are also exported.

2. Copy Categories to Folders

The script quickly copies my pictures sorted in a category from the database
Out into a physical folder while keeping the class name.

Is it possible these functions directly in Imatch 2017 or in a
Script to implement?
Unfortunately, I myself lack the knowledge and also the time to write Java scripts.

greeting
Tom

Mario

#1
1. This is one of the rarely used / obscure scripts I decided not to implement for IMatch 2017.
So far you are the first user who reports that this script is missing, after about 2 months of IMatch 2017. This is another indicator that this scripts is not used by many.

I don't really see a need to export keyword categories. Keywords are part of the IMatch database and become part of the image file as soon as you write-back. Barely a need to backup this data yet to another source. To export keywords per file, you can always use the text export.

IMatch also has a built-in category export module which can export the category schema (optionally including file assignments) in the native IMatch 5 / 2017 category schema format, which is XML. XML can be processed by any proper text editor or database system.

2. IMatch scripting has currently no features to create folders or copy files. Hence this script does not exist and can only be implemented once IMWS has features for creating folders and moving/copying files. In a later edition.

I suggest you add a feature request for these scripts. If more than a handful of users reports demand, I will consider re-implementing it when the required functions become available. Or maybe one of the other app developers will.

Tip: After creating a folder you can quickly copy files into that folder from any file window (including categories) by selecting the files and then Ctrl+C, go to folder, Ctrl+V. I think this is fairly quick, even if you have to perform such operations often.

Another idea would be to use the Renamer. Without renaming the files, move them into a new folder based on a category variable.
-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook

tom

First time thanks for the reply.

1.
I've tried using my @Keywords over the export module category export
Export, but here only the categories are exported,
not the @ keywords categories.
What is also going to export keywords from the thesaurus administration in the Intendet format.
You can also import keywords from the database into the thesaurus administration,
but unfortunately only assigned keywords.

Can I use the Textexportmodule to export keyword categories?

2.
I'll try to move with the Renamer my files or otherwise
conventionally via the clipboard.
With the script it was easier for me.

Mario

The category export does not export data-driven categories (like @Keywords). No need because the must be re-created from the data in the files anyway.

QuoteCan I use the Textexportmodule to export keyword categories?

The ext export module works on a per-file basis. You can export data per file, including keywords or categories.
The thesaurus offers several export formats, and you may import the keywords from your files into the thesaurus. Note that this may not be useful under all conditions, and that what the @Keywords category show may not necessarily the same keywords that are in your files (considering group levels, auto-grouping @Keywords by the first keyword etc. @Keywords has many advanced features.

I understand you want to export a flat list of all keywords you have used in IMatch? Or for which you have created @Keyword categories? There might be a difference if you configure @Keywords to retain unused keywords or you make it auto-group by the first character. Why do you need a list of keywords elsewhere?

QuoteI'll try to move with the Renamer my files or otherwise
conventionally via the clipboard.
With the script it was easier for me.

Probably. But I don't know how many other users ever create folders based on categories. When I recall it correctly I wrote the script 10 years ago as an example to show how to iterate categories and create folders on-the-fly. Never thought that somebody would ever use that. You may be the only user out there who has a need for this.

Most users think from the folder hierarchy, first grouping their files into a date-based folder hierarchy. Categories and keywords are then used to organize the files, in virtual ways, without ever changing the file system layout ever again.

Of course there may be some very peculiar workflows where at some time files are moved into folders based on category assignments. But that can be done with Ctrl+C and Ctrl+V easily enough. Just create the folder in the Media & Folders View, then move the files into it via Drag & Drop or the clipboard.
-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook