Welcome Guest

Pages: 1
Different years in the same album
tommyjiangPostFebruary 15, 2020, 21:05
Newbie
Posts: 7
Registered:
December 28, 2019, 21:06
Normal topicDifferent years in the same album

I write the an action for move the files. The folder name is “[B - S] (YYYY) - Album”.

If different years in the same album, I will got multi directories in one album.

Is it possible when different years in the same album, use one year (smallest or largest)?

Image

2MR2PostFebruary 15, 2020, 22:29
Avatar photo
Administrator
Posts: 2079
Registered:
August 23, 2012, 19:27
Normal topicRe: Different years in the same album

Here's sample code to use the largest. Largest is better as the smallest may be empty.

Build List with delimiter "⏎" in named variable 'Years' from field Year (As found) string delimiter "\~"
Find the maximum of the list in named variable 'Years' with delimiter "⏎" rounding (truncate). Result to named variable 'Max Year'
Set Variable 15 to "\<Max Year>"

The first statement is a Build List statement. The second statement is a List Numeric Functions statement.

Wherever you currently use the Year field, use Variable 15 instead.

tommyjiangPostFebruary 16, 2020, 00:14
Newbie
Posts: 7
Registered:
December 28, 2019, 21:06
Normal topicRe: Different years in the same album

Thanks a lot for your reply.

What function name of find the max of the list?

If multiple albums are processed at the same time,Max of all of album or max of each album.

2MR2PostFebruary 16, 2020, 13:55
Avatar photo
Administrator
Posts: 2079
Registered:
August 23, 2012, 19:27
Normal topicRe: Different years in the same album

The function I used is called List Numeric Functions

The code I supplied will not work with multiple albums selected. I've uploaded an action which when called sets Variable 15 to the max year in a track's containing album. It even handles tracks with a missing Album field. No other track variables are modified. Simply call: Max Year Per Album to Variable 15 after importing the action at:

https://2manyrobots.com/actions/MaxYear.zip

tommyjiangPostFebruary 16, 2020, 16:19
Newbie
Posts: 7
Registered:
December 28, 2019, 21:06
Normal topicRe: Different years in the same album

Thanks, I try it

tommyjiangPostFebruary 22, 2020, 18:12
Newbie
Posts: 7
Registered:
December 28, 2019, 21:06
Normal topicRe: Different years in the same album

Thanks For Your Inspiration, According to your program, I update to <Min Year>-<Max Year>.
Image

2MR2PostFebruary 22, 2020, 18:27
Avatar photo
Administrator
Posts: 2079
Registered:
August 23, 2012, 19:27
Normal topicRe: Different years in the same album

🙂

Pages: 1
Mingle Forum by Cartpauj | Version: 1.1.0beta | Page loaded in: 0.03 seconds.