Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Jump to the beginning of a movie in DVD Player' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Jump to the beginning of a movie in DVD Player
Authored by: Cameroon on Jun 27, '04 08:33:33PM

I've got what I think is a better method, but it does have one catch. DVD Player cannot be running when you run the script, or it won't work as expected. The comment in-code pretty much explains it.

I don't know for sure why it works, but it does. I think it has something to do with catching the player or DVD "off-guard".

I wonder if it's possible to get this script to run (instead of DVD Player) when a DVD is inserted? That might be pretty darn handy.


tell application "DVD Player"
	(* this won't work as desired if DVD Player is
	already running when we get to this point
	when given the series of commands this quickly
	DVD Player will skip past all the unwanted crap and menus
	that are becoming more common on DVDs.
	This is perfect becuase then we don't have to come up
	with some funky logic that may or may not play the movie
	as expected *)
	activate
	try
		set title to 1
	on error
		quit
	end try
	play dvd
end tell


[ Reply to This | # ]
Jump to the beginning of a movie in DVD Player
Authored by: Graff on Jun 29, '04 09:36:04AM

Sure, it's easy to get a script to run when you insert a DVD. Here's how:

  1. go to System Preferences -> CDs & DVDs
  2. click on the pop-up menu "When you insert a video DVD"
  3. choose "Run script..." from the menu
  4. select the script to run

Now every time you insert a video CD the script will run instead of DVD Player being opened.

- Graff



[ Reply to This | # ]