Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm building a script to automatically run videos held on a windows server using VLC. I can get VLC to play files on my drives, but not from files held on a server. For example:

tell application "VLC" to open "smb://"

fails with the message: cannot open file /smb://..../filename.avi (No such file or directory), while:

tell application "VLC"
    OpenURL "smb://"
end tell

yields open of 'smb://..../filename.avi' failed. Does anyone know the best way to achieve this? Thanks in advance.

share|improve this question
Video players (and music players ) as a general rule do not handle the mounting/dismounting of remote volumes for file access, and rely on the OS to perform this task. for OSes that don't automatically handle samba addressing, this can be a big headache. The general answer is to mount the volume via FUSE, and point the application at the mount point on the localsystem. that way the App itself need not worry about how it was mounted, and need not care about sharing protocols like SMB, NFS, etc. figure out how to do that in applescript, and you should be golden. – Frank Thomas May 14 '13 at 13:40
Thanks @Frank Thomas - if you put this in an answer I'll tick it. – geotheory May 14 '13 at 14:44

The following script works for me:

    mount volume "smb://"
    set videoFolder to "/Volumes/"

    tell application "VLC"
        open videoFolder
    end tell
end try
share|improve this answer
wonderful, Glad you got it working! – Frank Thomas May 14 '13 at 14:54

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.