// PAL Script to Add Random Tracks // from a Specified Directory to the Queue // Loop the Script PAL.loop := True; // Check for an empty queue and add 1 track if empty If Queue.Count < 1 then Cat['Music (All)'].QueueBottom(smRandom, NoRules); //Wait until there is only 1 track in the Queue PAL.WaitForQueue(1); // When there is only 1 track in the Queue, keep 3 random tracks queued // from a specified directory while Queue.Count < 3 do Cat['Music (All)'].QueueBottom(smRandom, NoRules);