advertisement

Article:
  Schedule HackTV with iCal
Subject:   Get length of recording from iCal?
Date:   2005-02-11 12:32:35
From:   ghankstef
How could one get the length of the recording from the iCal entry instead hard-coding it in the script?


Script seems to work great by the way

Full Threads Oldest First

Showing messages 1 through 2 of 2.

  • Erica Sadun photo Get length of recording from iCal?
    2005-02-11 12:52:53  Erica Sadun [Reply | View]

    To use iCal for timing, you need to split the script in two at the 'delay' line (and toss that line). Schedule the second script for the end-time.
    • Use Quicktime Player (Pro Version).
      2005-11-12 19:04:41  GT-DVR [Reply | View]

      The same task can be accomplished using QuickTime Pro 7 and Tiger 10.4:


      -- Start Quicktime Pro 7 Recorder.
      -- Define Recorder Settings inside QT Pro Recorder Preferences
      -- Mods by GT-DVR

      tell application "QuickTime Player"
      activate

      do shell script "sleep " & (2)

      tell application "System Events"
      tell application process "QuickTime Player"
      click menu item "New Movie Recording" of menu "File" of menu bar item "File" of menu bar 1
      keystroke return
      -- hide quicktime player while recording
      click menu item "Hide QuickTime Player" of menu "QuickTime Player" of menu bar item "QuickTime Player" of menu bar 1
      end tell
      end tell
      end tell



      -- Stop Quicktime Pro 7 Recorder.
      -- Define Recorder Settings inside QT Pro Recorder Preferences
      -- Mods by GT-DVR

      tell application "QuickTime Player"
      activate
      do shell script "sleep " & (2)
      tell application "System Events"
      tell application process "QuickTime Player"
      keystroke return
      do shell script "sleep " & (2)
      -- hide quicktime player after recording
      click menu item "Hide QuickTime Player" of menu "QuickTime Player" of menu bar item "QuickTime Player" of menu bar 1
      end tell
      end tell
      end tell


      It is a little easier and simpler!

      Have fun,
      Goodtime
-->