how to dynamically build or alter a search argument

Post Reply
dpaine
Posts: 22
Joined: 12 Mar 10 23:38

how to dynamically build or alter a search argument

Post by dpaine »

I recently began using Amazon Drive as an additional backup for my image files. There is a little feature Amazon Drive provides that I would like to emulate in Photo Supreme. Simplifying it somewhat, each day Amazon Drive sends me a link to a web site that shows all my images that have photo dates corresponding to today's day of the year.

Example, today is February 25, 2017. Amazon would show existing photos taken on 25 Feb 2016, 25 Feb 2015, ... , 25 Feb 1998, ...

The following search argument will give me that information in Photo Supreme:
"25 February"@CATITEM.PhotoDate

What I would like to do is to have the system automatically plug in today's day-month text so that I would not have to revise the search command each day.

Thanks in advance for any suggestions.

- David P
sanphotgn
Posts: 334
Joined: 26 Aug 07 17:06

Re: how to dynamically build or alter a search argument

Post by sanphotgn »

If you are willing to use a macro, I believe this may work:

Macro Command

Code: Select all

%d %mmmm
Equals

Code: Select all

#system:d #system:mmmm
macro command.JPG
macro command.JPG (18.72 KiB) Viewed 5048 times
Photo Supreme 6.7.2.4201 (64 bits) (Windows)
dpaine
Posts: 22
Joined: 12 Mar 10 23:38

Re: how to dynamically build or alter a search argument

Post by dpaine »

Thanks, sanphotgn. That is a clever approach that had not occurred to me.

In hindsight I probably should not have selected 40,000 images before trying your suggestion. Photo Supreme was working really hard for several minutes trying to comply with the filtering command, then it finished with no results. I'll dig a little more.

Again, thanks!

- David P
Hert
Posts: 7870
Joined: 13 Sep 03 6:24

Re: how to dynamically build or alter a search argument

Post by Hert »

David, what you want isn't possible with the quick search in fact you'd want to enter #system macros in the quick search bar. Unfortunately that isn't possible as up to today I saw no use for macro parsing of search text. Best to record a Mantis ticket for this request.
This is a user-to-user forum. If you have suggestions, requests or need support then please send a message
dpaine
Posts: 22
Joined: 12 Mar 10 23:38

Re: how to dynamically build or alter a search argument

Post by dpaine »

I appreciate your response, Hert.

My little specific need is probably not worth the effort required by the Photo Supreme developers, but maybe in the grand scheme of things having macro parsing in the quick search bar could provide some potential universal benefit.

- David P
snowman1
Posts: 394
Joined: 01 Jan 07 2:13

Re: how to dynamically build or alter a search argument

Post by snowman1 »

I find myself with a use case for macros in the search bar. I am interested in searching for images that have GPS info. I can to some extent simulate this if I know the approximate lat or long, by using - for example - "3@XMP.exif:gpslatitude" (and I only need enter the most significant digit of the lat or long). But it would be a lot neater if I could use something like "yes@%ImageHasGPS".

Edit: and what I can't do without macros - as far as I know - is search for images that do not have GPS info.

Edit2: I've found I can do this to some extent by using the filter bar, clicking on the double down-arrow to show more parameters, entering "3@XMP.exif:gpslatitude" into the filter text, and then clicking "filter>invert filter".

Edit3: Or I can use filter, dropdown>filter by macro command>%ImageHasGPS equals yes/no. I seem to be answering my own questions :-)
Post Reply