AppleScript To Manipulate VLC
This AppleScript will open the specified folder in VLC and begin to play the contents:

tell application "VLC"
  OpenURL "file:///Users/grgarside/Desktop/test/"
  play
end tell