Search code examples
pythoncontrolleritunes

Can python controll applications like itunes?


How can I tell python to skip a song in itunes or something like that. Is it possible? I use to have scripts with auto hot key(ahk) to copy certain songs and stuff but the way ahk worked was by taking control of your mouse so if you had an ahk script running you couldnt use your mouse. So can python interact with applications like itunes without using your mouse?


Solution

  • Python supports OSA, and so can interact with any application that supports AppleScript.