Is it possible in theory to create a script that would select 16 (or any definable number) files from a given folder with the option to select how many have specific labels/tags etc? Perhaps also the option to then copy these files into a sequentially labelled folder nested inside the search folder.
I would have a specific musical purpose for this to select files from a curated collection using various levels of probability.
I am new to XY so not yet familiar with all the possibilities - but I do like the scripting potential
Script for Random File Selection?
Re: Script for Random File Selection?
Sure it is
One of my scripts helped you out? Please donate via Paypal
-
- Posts: 16
- Joined: 29 Dec 2021 18:57
Re: Script for Random File Selection?
This supports 3 modes:
1. Random selection by number (e.g.
2. Selection by label / tag (e.g.
3. Random selection by number AND label / tag (e.g.
Zero guarantee, highly untested...
If this is not what you wanted, rewrite it^^
1. Random selection by number (e.g.
15
=> Select 15 files)2. Selection by label / tag (e.g.
red
=> Select all files with with the label or tag red)3. Random selection by number AND label / tag (e.g.
5 mint
=> Select 5 of all files with the label or tag mint
)Zero guarantee, highly untested...
If this is not what you wanted, rewrite it^^
One of my scripts helped you out? Please donate via Paypal
-
- Posts: 16
- Joined: 29 Dec 2021 18:57
Re: Script for Random File Selection?
Wow! That is pretty much perfect Highend! I am going to test it now! Thank you!highend wrote: ↑30 Dec 2021 15:59 This supports 3 modes:
1. Random selection by number (e.g.15
=> Select 15 files)
2. Selection by label / tag (e.g.red
=> Select all files with with the label or tag red)
3. Random selection by number AND label / tag (e.g.5 mint
=> Select 5 of all files with the label or tagmint
)
Zero guarantee, highly untested...
If this is not what you wanted, rewrite it^^
Select files randomly by number, label or tag_v0.1.xys