Search by file attribute 'Rating'

English support forum

Moderators: white, Hacker, petermad, Stefan2

User avatar
tbeu
Power Member
Power Member
Posts: 1336
Joined: 2003-07-04, 07:52 UTC
Location: Germany
Contact:

Re: Search by file attribute 'Rating'

Post by *tbeu »

OK, I figured out a workaround to find files w/o rating using fulltext search, see Image: https://tbeu.de/forum/wdx_imagemetadata_no_rating.png

You need to enable the XMPDump field in jpg-comment.ini to make it working.

Code: Select all

; Experimental dump
Sep_4=6|-|Separator

;EXIF_Dump=9|ExifDump|Exif.Dump
;IPTC_Dump=9|IptcDump|Iptc.Dump
XMP_Dump=9|XmpDump|Xmp.Dump
Last edited by tbeu on 2020-05-08, 10:37 UTC, edited 1 time in total.
TC plugins: Autodesk 3ds Max / Inventor / Revit Preview, FileInDir, ImageMetaData (JPG Comment/EXIF/IPTC/XMP), MATLAB MAT-file Viewer, Mover, SetFolderDate, Solid Edge Preview, Zip2Zero and more
User avatar
tuska
Power Member
Power Member
Posts: 3741
Joined: 2007-05-21, 12:17 UTC

Re: Search by file attribute 'Rating'

Post by *tuska »

2tbeu
Many thanks to you for the prompt solution!

2IanP
I found your approach for a workaround regarding the search for pictures without rating very interesting,
but since tbeu provides this field now we don't need it anymore.

What I propose to you now is this:

Code: Select all

1. Creating a Custom columns view
2. Create a View mode + buttons
3. Adaptation of the file %COMMANDER_PATH%\jpg-comment.ini
4. Creation and execution of the search query
ad 1. Creating a Custom columns view
FAQs: Create a user defined 'Custom Column'
Creation of a "Custom columns - View"
Name of your custom columns view, e.g. Photos_Rating
In this case I recommend to use the following fields in this order:

Code: Select all

[=tc.ext] ... --> separates file extension from name!
[=jpg-comment.Xmp_xmp_RatingStars]
[=tc.size.bytes]
[=tc.writedate]
[=tc.path]
ad 2. Create a View mode + buttons
Creation of a "View Mode" and "Auto Switch Mode"
...
- Name of your "View Mode", e.g. Photos_Rating
- Columns view: XX Photos_Rating (XX = number of Custom columns view)
- Sort order: Name
- Additional sort orders: -102 (Click on '+' button -> 102 RatingStars -> Descending (9..0))
- Auto-run commands: cm_100Percent|cm_50Percent         ) Option!
   ... OR ...                  cm_100percent 70|cm_50Percent   )
Button to call up a View mode

Code: Select all

TOTALCMD#BAR#DATA
cm_SrcViewModeList Photos_Rating

wcmicons.dll,52
cm_SrcViewModeList Photos_Rating|Search by file attribute 'Rating'|https://ghisler.ch/board/viewtopic.php?f=3&t=68419


-1
A button with command cm_SrcViewMode0 resets the view to <default>.
Extended Button: View Mode <Default>

Code: Select all

TOTALCMD#BAR#DATA
cm_SrcViewMode0,cm_50Percent,cm_RereadSource

wcmicons.dll,86
cm_SrcViewMode0,cm_50Percent,cm_RereadSource || VIEW MODE <DEFAULT>|- cm_SrcViewMode0 8500 Source: Default View mode (no colors or icons)|- cm_50Percent 909 Window separator at 50%|- cm_RereadSource 540 Reread source


-1
Extended Button: View Mode <Default> --> Note

Code: Select all

With the "Extended Button" the command: cm_50Percent is not necessary in this case, 
because it is enough that command: cm_SrcViewMode0,cm_50Percent is used.

However, a combination from commands or em_commands is recommended to cover *other requirements* in other cases
with regard to View Mode <Default>, e.g. cm_SrcActivateTab1,cm_TrgActivateTab1,cm_FocusLeft,cm_RereadSource ... OR ...
cm_50Percent,cm_FocusLeft,cm_SrcViewMode0,em_ClearAllFilter,cm_FocusRight,cm_SrcViewMode0,em_ClearAllFilter,cm_SrcActivateTab1,cm_TrgActivateTab1,cm_FocusLeft,cm_RereadSource

Code: Select all

usercmd.ini
[em_ClearAllFilter]
button=
cmd=cd *.*
-----------------------------------------------------------------------------------------------------------------------
https://ghisler.ch/board/viewtopic.php?p=344777#p344777 ....: FAQs: User-Defined Command (UDC) (usercmd.ini) em_command
https://ghisler.ch/board/viewtopic.php?p=337337#p337337 ....: Here are topics that also relate to this topic
View Mode: <Default> --> e.g. Columns view: Full, Sort order: Name (if not available, then please create these entries)

ad 3. Adaptation of the file %COMMANDER_PATH%\jpg-comment.ini
Please insert the code stated here at the end (after the last line) in the file jpg-comment.ini.

ad 4. Creation and execution of the search query
- Search in separate process... Alt+Shift+F7
- Field "Search for:" *.CRW;*.dng;*.jpeg;*.JPG;*.raw;*.TIF;*.TIFF
- Tab "Advanced" - ☑ Find duplicate files - ☑ same name - ☐ same size
- Tab "Plugins" -  ☑ Search in plugins - ◉ OR (any match)

Code: Select all

  Plugin	Property		OP		Value:
----------------------------------------------------------------------
  jpg-comment	Xmp_xmp_RatingStars	=		*****
  jpg-comment	Xmp_xmp_RatingStars	=		****
  jpg-comment	Xmp_xmp_RatingStars	=		***
  jpg-comment	Xmp_xmp_RatingStars	=		**
  jpg-comment	Xmp_xmp_RatingStars	=		*
  jpg-comment	Xmp_xmp_RatingStars	=		~
  jpg-comment   XmpDump			!contains  	Xmp.xmp.Rating  --> This value: type in manually!  *)
  							                    *) Search for pictures without rating!
  Save this search e.g. under the name "Duplicates_RatingStars" --> tab "Load/Save", button "Save"...
  Click on button "Start search", then on "Feed to listbox"...
- Click on button with command: cm_SrcViewModeList Photos_Rating ('View mode' with integrated 'Custom columns view')
  (Note: The descending sorting concerning [=jpg-comment.Xmp_xmp_RatingStars] did not work 100% for me).

DONE!
Now the adjustments can be made!


Three buttons:
1. Open saved search in separate task
2. Apply View mode with built-in Custom columns view
3. View mode <Default> -> "Extended button" -> Reset view to default view
Button to open another TC instance - just in case you need TC for another task in between...

Code: Select all

TOTALCMD#BAR#DATA
%COMMANDER_EXE%
%Z/N %X"%P" "%T"
TOTALCMD.EXE
TC open a further instance:|Instance no. + version no. + registered user in title bar|%COMMANDER_EXE% %Z/N %X"%P" "%T"|https://ghisler.ch/board/viewtopic.php?p=386324#p386324|See also: https://ghisler.ch/board/viewtopic.php?t=49620


-1
Post Reply