AppleScript to play LMS favorites (Logitech Media Server)
set serverIP to "192.168.1.80" --change to your server IP
--Your first favorite has an item_id of 0, the second=1, third=2, etc.
--So, to play your first favorite:
do shell script "printf \"favorites playlist play item_id:0\nexit\n\" | nc " & serverIP & " 9090"
--Second:
--do shell script "printf \"favorites playlist play item_id:1\nexit\n\" | nc " & serverIP & " 9090"
--Fifth:
--do shell script "printf \"favorites playlist play item_id:4\nexit\n\" | nc " & serverIP & " 9090"
--etc.