понедельник, 22 марта 2010 г.

Autoplay DVD with VLC

Autoplay DVD with VLC

1) Create a script using Script Editor and paste the following:

activate application "VLC"
tell application "Finder" to set frontmost of process "VLC" to true
tell application "System Events" to click menu item "Open Disc..." of menu of menu bar item "File" of menu bar of process "VLC"
tell application "System Events" to tell process "VLC"
keystroke return
end tell
tell application "VLC"
fullscreen
next
end tell

2) Compile and Save
3) Open "System Preferences..." and select "CDs & DVD's".
4) Select "Run Script" for "When you insert a video DVD".
5) Browse to where you saved your new script, select it and click "Choose".

This will automatically play DVD using VLC.
If you are using a localized non-English version just replace the "Open Disc..." and "File" accordingly.

Комментариев нет: