Ignore:
Timestamp:
10/28/07 23:18:53 (17 years ago)
Author:
Nicholas Riley
Message:

setup.py: Note that the bundle bit needs setting.

RetroStatus.py: Launch/quit Apple Backup, to work around its periodic
failure when left running all the time.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/RetroStatus/RetroStatus.py

    r343 r344  
    135135### Retrospect event handlers
    136136
    137 def retrospectstart(autolaunchboolean): pass
     137def retrospectstart(autolaunchboolean):
     138    try:
     139        app(id='com.apple.Backup').quit(timeout=5)
     140    except CommandError:
     141        addEvent('Apple Backup failed to quit', 'Please check on it.')
     142
    138143def scriptstart(scriptname, startdate): pass
    139144# yes, this really should be "remotetname"
     
    181186
    182187def retrospectquit():
     188    # can use launch() in newer appscript versions without CommandError
     189    app(id='com.apple.Backup').activate()
    183190    stopeventloop()
    184191
Note: See TracChangeset for help on using the changeset viewer.