VLC new instance and open file / record
Hi,
I use VLC multiple instances with:
on run
do shell script "open -n /Applications/VLC.app"
tell application "VLC" to activate
end run
on open theFiles
repeat with theFile in theFiles
do shell script "open -na /Applications/VLC.app " & quote & (POSIX path of theFile) & quote
end repeat
tell application "VLC" to activate
end open
Actually, I get a url .m3u8 by applescript and manually paste it in VLC open network, then, as the video shows, click record.
How could I pass directly an url in the script above?
Then (in plus):
-it would be possible to pass a comand to record as the stream starts?
-sometimes the stream stops/disconnects, and I have to submit again; it would be possible to make an automatic re-connection?
Thanks in advance for any help.
MacBook, OS X Yosemite (10.10.3)