Hello I need a script to rating the current track automatically. With the following script it isn't possible because theres an error by "★★★★★". Although this is actually the correct term. (I need to stretch the code with delays because the viewer should see the automatic-action)
Code:
tell application "iTunes"
activate
end tell
delay 1
tell application "System Events"
tell process "iTunes"
key code 120 using control down
delay 1
tell menu bar 1
click menu bar item "Ablage"
end tell
end tell
end tell
delay 1
tell application "System Events"
tell process "iTunes"
delay 1
tell menu bar 1
tell menu "Ablage"
click menu item "Wertung"
end tell
end tell
end tell
end tell
delay 1
tell application "System Events"
tell process "iTunes"
delay 1
tell menu bar 1
tell menu "Ablage"
tell menu "Wertung"
click menu item "★★★★★"
end tell
end tell
end tell
end tell
end tell