Skip to main content
added 224 characters in body
Source Link
Matthieu Riegler
  • 21.8k
  • 11
  • 62
  • 98

AFAIK you can only do this using UI scripting, here is one of theare some ways to do itswitch to the miniplayer :

Simulating a click on the button in the interface :

tell application "System Events" to tell process "iTunes"
    click button 4 of window 1
end tell

Using the keyboard shortcut :

tell application "System Events"
    tell application "iTunes" to activate
    keystroke "m" using {option down, command down}
end tell

If you want to display the miniplay AND the fullsize player (your request isn't clear) use :

tell application "System Events"
    tell application "iTunes" to activate
    keystroke "3" using {option down, command down}
end tell

AFAIK you can only do this using UI scripting, here is one of the ways to do it :

tell application "System Events" to tell process "iTunes"
    click button 4 of window 1
end tell

AFAIK you can only do this using UI scripting, here are some ways to switch to the miniplayer :

Simulating a click on the button in the interface :

tell application "System Events" to tell process "iTunes"
    click button 4 of window 1
end tell

Using the keyboard shortcut :

tell application "System Events"
    tell application "iTunes" to activate
    keystroke "m" using {option down, command down}
end tell

If you want to display the miniplay AND the fullsize player (your request isn't clear) use :

tell application "System Events"
    tell application "iTunes" to activate
    keystroke "3" using {option down, command down}
end tell
Source Link
Matthieu Riegler
  • 21.8k
  • 11
  • 62
  • 98

AFAIK you can only do this using UI scripting, here is one of the ways to do it :

tell application "System Events" to tell process "iTunes"
    click button 4 of window 1
end tell