Domanda

Launching itunes with win32com is easy.

try:
    itunes = win32com.client.GetActiveObject("iTunes.Application")
except:
    itunes = win32com.client.Dispatch("iTunes.Application")

How do I terminate the itunes I launched?

È stato utile?

Soluzione

Just call Quit method.

itunes.Quit()
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top