In an Applescript file, how might I go about getting particular groups of albums to play at random -


say, trying artists → artists play on random. or playing genre → metal play on random?

you can build list selecting artist or genre , play random item of list :

tell application "itunes"     set mylist every track genre "pop"       set randomnumber random number 1 (count of mylist)     play item randomnumber of mylist end tell 

however, need add repeat loop keep playing next random number.

if have itunes version lower 11, can still use shuffle property of play list. since version 11, shuffle property obsolete. regulus663 found workaround in stack overflow 4 years ago; refer link : how set itunes 11 in shuffle or repeat mode via applescript


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -