get dvd timecode with applescript

Discussion in 'Mac Apps and Mac App Store' started by rodemer, Feb 6, 2005.

  1. rodemer macrumors newbie

    Jul 25, 2002
    For a live music performance along with a dvd of video and electronic music, we need to be able to display the current timecode as the dvd plays, so the trombonist and tuba player can come in at the appropriate times.

    Does anyone know of a way to use applescript or otherwise "get" the timecode as it plays back, so I can send it out the usb port to an external LED numerical display?


    Michael in Ann Arbor
  2. robbieduncan Moderator emeritus


    Jul 24, 2002
    According to the AppleScript Dictionary for DVD Players (Open Script Editor then use File->Open Dictionary and choose DVD Player to see this) the DVD Player application exposes a property called elapsed time which is the elapsed time, in seconds, of the current title.

    So something like
    tell application "DVD Player"
    	set time to elapsed time
    end tell
    would se the variable time to the elapsed time. Sending that over USB is an exercise I leave to the reader :)

Share This Page