Page 1 of 1

Load songs in folder dynamically based on date

Posted: 10 May 2020 21:12
by polp6880
Hi,

I'd like to create a script that is able to load all tracks within a directory named as the date it should air.

This is an example directory structure I'm using: C:/MUSIC/Test/20200511 - then all of the songs are available in that directory.

I thought that LoadFolder would allow me to do something like C:/MUSIC/Test/${start_yyyy}${start_MM}${start_dd} but it seems that this is not allowed.

Can anyone guide me to an alternative solution to go about this please?

Thanks!

Re: Load songs in folder dynamically based on date

Posted: 10 May 2020 21:58
by radio42
Well, I just quickly tested it and it works just fine here!
What you probably did oversee is, that the script-line 'Count' parameter denotes the maximum tracks to be taken from that folder (it is an up to value).
E.g. if you have set this to 1, only 1 track would be taken from that folder.
If the 'Count' value is greater than the number of files in the folder all files would be taken.

So your approach was totally correct - simply increase the LoadFolder script-line 'Count' value to e.g. 99.

Re: Load songs in folder dynamically based on date

Posted: 11 May 2020 08:12
by polp6880
Hi Bernd,

Thanks a lot for your reply and I'm glad to hear that this is possible.

I had indeed set the Count to 1 - setting this to 99 solved the issue. I also noticed that I can add the date variables when I click on the "..." as I was trying edit this text directly from the Entry field.