Is it possible to...

Discussion in 'Mac Programming' started by Mavimao, Jul 25, 2005.

  1. Mavimao macrumors 6502a

    Mavimao

    Joined:
    Feb 16, 2005
    Location:
    Lyon, France
    #1
    I'm going to quickly do some research on this, but maybe I can get faster results here.

    I have a few DVDs that students use at my University to study Arabic and these are intended to be seen on TVs. However, we're trying to make it so the DVD image is on the harddrive and they are able to watch it from there.

    Is there anyway to make some sort of apple script that they can click on that will open DVDplayer and open the video_TS folder automatically?

    We could teach them how to go to file -> open video_TS folder -> (find folder), but that might confuse them :p

    In any case, help would be nice! Thank you!
     
  2. emw macrumors G4

    emw

    Joined:
    Aug 2, 2004
    #2
    Code:
    tell application "DVD Player"
    	set moviefile to get "-enter movie path-" as file specification
    	open VIDEO_TS moviefile
    	play dvd
    end tell
    
    I'm not an AppleScript guru, so it may not be the most efficient code, but it will work. Replace -enter movie path- with the appropriate path, such as Mac HD:Movies:Lesson1

    Edit: The last part of the path should be VIDEO_TS
     
  3. Mavimao thread starter macrumors 6502a

    Mavimao

    Joined:
    Feb 16, 2005
    Location:
    Lyon, France
    #3
    That did the trick! Thanks so much!

    I'm such a complete ditz when it comes to programming it's not even funny.
     

Share This Page