how to dynamically build or alter a search argument

Post Reply
dpaine
Posts: 34
Joined: 13 Mar 10 0:38

how to dynamically build or alter a search argument

Post by dpaine » 26 Feb 17 2:24

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: 352
Joined: 26 Aug 07 18:06

Re: how to dynamically build or alter a search argument

Post by sanphotgn » 26 Feb 17 18:31

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 465 times
Photo Supreme 3.3.0.2589 (64 bits) (Windows)

dpaine
Posts: 34
Joined: 13 Mar 10 0:38

Re: how to dynamically build or alter a search argument

Post by dpaine » 26 Feb 17 22:35

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: 20236
Joined: 13 Sep 03 7:24

Re: how to dynamically build or alter a search argument

Post by Hert » 28 Feb 17 8:01

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 which means that users post questions here for other users.
Feature requests, change suggestions, or bugs can be logged in the ticketing system

dpaine
Posts: 34
Joined: 13 Mar 10 0:38

Re: how to dynamically build or alter a search argument

Post by dpaine » 01 Mar 17 18:48

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

User avatar
snowman1
Posts: 288
Joined: 01 Jan 07 3:13
Location: UK

Re: how to dynamically build or alter a search argument

Post by snowman1 » 24 Mar 17 23:03

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 :-)
Snowman1
http://www.flickr.com/photos/snowman-1/
--------------------------------------

Post Reply