Applescript para reproduzir vídeos do Windows share (smb: //) com o VLC Player

0

Estou criando um script para executar automaticamente vídeos mantidos em um servidor Windows usando o VLC. Posso fazer com que o VLC reproduza arquivos em minhas unidades, mas não em arquivos mantidos em um servidor. Por exemplo:

tell application "VLC" to open "smb://server01.ac.uk/videos/filename.avi"

falha com a mensagem: cannot open file /smb://..../filename.avi (No such file or directory) , enquanto:

tell application "VLC"
    activate
    OpenURL "smb://server01.ac.uk/videos/filename.avi"
    play
end tell

rende open of 'smb://..../filename.avi' failed . Alguém sabe a melhor maneira de conseguir isso? Agradecemos antecipadamente.

    
por geotheory 14.05.2013 / 15:29

1 resposta

1

O script a seguir funciona para mim:

try
    mount volume "smb://server01.ac.uk/videos/"
    set videoFolder to "/Volumes/server01.ac.uk/videos/"

    tell application "VLC"
        fullscreen
        open videoFolder
        next
    end tell
end try
    
por 14.05.2013 / 16:47