Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Applications > Autoplay DVD's in VLC when inserted?

Autoplay DVD's in VLC when inserted?
Thread Tools
moonmonkey
Professional Poster
Join Date: Jan 2001
Location: Australia
Status: Offline
Reply With Quote
Feb 17, 2007, 09:50 PM
 
Does anyone know how to do this?
I know how to get VLC to launch when the DVD is inserted, but how do I get them to autoplay (like DVD Player.app does, DVD player.app is no good as it keeps requiring region switches).

This is for my media center and is quite important to me.

Hope someone can help!
     
itai195
Addicted to MacNN
Join Date: May 2001
Location: Cupertino, CA
Status: Offline
Reply With Quote
Feb 18, 2007, 01:45 AM
 
Well you can do it with AppleScript. This ought to work unless you have an unusual system configuration. You might have to replace 'disk2' below with 'disk1', you can figure it out by inserting a DVD in your system and, in Terminal, do 'diskutil list' and find the disk identifier that matches up with the DVD you inserted.
  1. Open /Applications/AppleScript/Script Editor and paste in this script:
    code:
    set DiskName to do shell script "diskutil info disk2 | grep -i \"volume name\" | awk '{print $3 }'"

    tell application "VLC"
    open DiskName
    delay 5
    fullscreen
    play DiskName
    end tell
  2. Save that as a script
  3. In System Preferences, set your DVD insertion preference to run the script you just created
( Last edited by itai195; Feb 18, 2007 at 02:19 AM. )
     
moonmonkey  (op)
Professional Poster
Join Date: Jan 2001
Location: Australia
Status: Offline
Reply With Quote
Feb 18, 2007, 04:03 AM
 
Wow! you are very smart thanks.
     
   
 
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Top
Privacy Policy
All times are GMT -4. The time now is 04:09 PM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,