photools.com Community

IMatch Discussion Boards => General Discussion and Questions => Topic started by: ben on June 16, 2018, 11:27:05 PM

Title: Collection 3/4/5/6 days old
Post by: ben on June 16, 2018, 11:27:05 PM
Hi Mario,
Is it somehow possible to create collections or categories that are similar to the collection "updated today" but for the last 3,4,5 days (each a different category)?

Thanks for your help
Beb
Title: Re: Collection 3/4/5/6 days old
Post by: Mario on June 17, 2018, 07:29:44 AM
Not that I'm aware of.
This would require data-driven categories which perform date arithmetic.
There is also no way to do this via variables, because this would again require date arithmetic to work.
Title: Re: Collection 3/4/5/6 days old
Post by: ben on June 17, 2018, 10:35:25 AM
Ok, thanks.

I process the files of that category by script, anyway.
So I could use the collection" modified last week" as a starting point and loop through all files checking the date.

Is the date information "last modified in database" somehow accessible to a script?


Ben
Title: Re: Collection 3/4/5/6 days old
Post by: Mario on June 17, 2018, 11:35:55 AM
Yes. See the /files endpoint documentation. And you of course also have access to all variables.

Use the IMatch WebServices documentation App (in IMatch) for details about the /files endpoint.