Changeset 339 for trunk


Ignore:
Timestamp:
08/19/07 04:21:41 (12 years ago)
Author:
Nicholas Riley
Message:

StreamVision?.py: fix Finder zooming issue by using PID; document
problem with a-umlaut; handle HIDRemote missing on exit.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/StreamVision/StreamVision.py

    r324 r339  
    5050        return ''
    5151    title = title.split(' [')[0] # XXX move to description
     52    # XXX fails with Arvo Pärt
    5253    title = title.encode('iso-8859-1').decode('utf-8') # XXX iTunes 7.1 or RP?
    5354    title = title.replace('`', u'’')
     
    212213            self.registerZoomWindowHotKey()
    213214            return
     215        frontPID = systemEvents.processes[its.frontmost][1].unix_id()
    214216        try:
    215             zoomed = app(frontName).windows[1].zoomed
     217            zoomed = app(pid=frontPID).windows[1].zoomed
    216218            zoomed.set(not zoomed())
    217219        except (CommandError, RuntimeError):
     
    256258if __name__ == "__main__":
    257259    AppHelper.runEventLoop()
    258     HIDRemote.disconnect() # XXX do we get here?
     260    try:
     261        HIDRemote.disconnect()
     262    except:
     263        pass
Note: See TracChangeset for help on using the changeset viewer.