سؤال

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?

هل كانت مفيدة؟

المحلول

Just call Quit method.

itunes.Quit()
مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top