<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#ffffff">
    On 5/30/2011 11:09, MacLaren, James M wrote:
    <blockquote
      cite="mid:65B450424E3DC742AA18F68E1AFB2140015BDFAB@EX06.ad.tulane.edu"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=ISO-8859-1">
      <meta name="Generator" content="MS Exchange Server version
        6.5.7652.9">
      <title>Is there an easy way to run script just after a recording
        finishes</title>
      <!-- Converted from text/plain format -->
      <p><font size="2">I have my myth box connected to a directv box.
          Now, from time to time the remote is pressed changing the
          channel mid recording.&nbsp; There is a code you can send (I have
          added it to directv.pl and it does work) that prevents the box
          responding to remote/front panel key presses, and one to
          unlock.&nbsp; I would like to lock the box during the channel
          change script it unlock it once the recording has finished.&nbsp;
          Is there an easy way to do this other than a script that would
          query the db when the recording should finish and run the
          unlock then.&nbsp; Any clever ideas?</font><br>
      </p>
    </blockquote>
    <br>
    Use the System Events subsystem to trigger the calls on recording
    start/end.<br>
  </body>
</html>