Changeset 663 for trunk/StreamVision
- Timestamp:
- 05/17/13 21:10:46 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/StreamVision/StreamVision.py
r658 r663 14 14 import scrape 15 15 import HotKey 16 import tunes # <https://github.com/abarnert/itunesterms>17 16 18 17 GROWL_APP_NAME = 'StreamVision' … … 82 81 return name 83 82 84 def iTunesApp(): return app(id='com.apple.iTunes' , terms=tunes)83 def iTunesApp(): return app(id='com.apple.iTunes') 85 84 def XTensionApp(): return app(creator='SHEx') 86 85 def AmuaApp(): return app('Amua.app') … … 106 105 if not HAVE_XTENSION: 107 106 return False 107 try: 108 # A bit better in iTunes 11.0.3, but can't do this via an Apple 109 # Event descriptor; have to send multiple events 110 iTunes = iTunesApp() 111 return any(d.kind() != k.computer for d in it.current_AirPlay_devices()) 112 except AttributeError: 113 pass 114 108 115 systemEvents = app(id='com.apple.systemEvents') 109 116 iTunesWindow = systemEvents.application_processes[u'iTunes'].windows[u'iTunes']
Note:
See TracChangeset
for help on using the changeset viewer.