I'm trying to get an iTunes script written to cycle through the three repeat options, but I'm getting an error. Can anyone help me out?
- Code: Select all
tell application "iTunes"
if current playlist's song repeat is equal to one then
set current playlist's song repeat to all
else if current playlist's song repeat is equal to all then
set current playlist's song repeat to off
else if current playlist's song repeat is equal to off then
set current playlist's song repeat to one
end if
end tell