Load songs in folder dynamically based on date

You have a question or need an advice about how to do something? Ask it here!
Post Reply
polp6880
Posts: 23
Joined: 19 Apr 2020 19:04

Load songs in folder dynamically based on date

Post by polp6880 » 10 May 2020 21:12

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!

User avatar
radio42
Site Admin
Posts: 6373
Joined: 05 Apr 2012 16:26

Re: Load songs in folder dynamically based on date

Post by radio42 » 10 May 2020 21:58

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.

polp6880
Posts: 23
Joined: 19 Apr 2020 19:04

Re: Load songs in folder dynamically based on date

Post by polp6880 » 11 May 2020 08:12

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.

Post Reply

Who is online

Users browsing this forum: No registered users and 20 guests