<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi Ali,<div><br></div><div>the common OS X way would be Applescript.</div><div><br></div><div>Use Applescript Editor to make a script like:</div><div><br></div><div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 41.6px; text-indent: -41.6px; font: normal normal normal 12px/normal Verdana; "><b>tell</b> <span style="color: #223cfb"><i>application</i></span> "VLC"</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 83.2px; text-indent: -83.2px; font: normal normal normal 12px/normal Verdana; color: rgb(34, 60, 251); "><span style="color: #000000"><span class="Apple-tab-span" style="white-space:pre"> </span></span><b>activate</b></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 83.2px; text-indent: -83.2px; font: normal normal normal 12px/normal Verdana; color: rgb(34, 60, 251); "><span style="color: #000000"><span class="Apple-tab-span" style="white-space:pre"> </span></span><b>play</b></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 41.6px; text-indent: -41.6px; font: normal normal normal 12px/normal Verdana; "><b>end</b> <b>tell</b></div></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 41.6px; text-indent: -41.6px; font: normal normal normal 12px/normal Verdana; "><b><br></b></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 41.6px; text-indent: -41.6px; font: normal normal normal 12px/normal Verdana; "><b><span class="Apple-style-span" style="font-family: Helvetica; font-weight: normal; font-size: medium; ">Save it as vlc.scpt and you can call that in MATLAB with:</span></b></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 41.6px; text-indent: -41.6px; font: normal normal normal 12px/normal Verdana; "><b><span class="Apple-style-span" style="font-family: Helvetica; font-weight: normal; font-size: medium; "><br></span></b></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 41.6px; text-indent: -41.6px; font: normal normal normal 12px/normal Verdana; "><b><span class="Apple-style-span" style="font-family: Helvetica; font-weight: normal; font-size: medium; ">system('osascript vlc.scpt')</span></b></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 41.6px; text-indent: -41.6px; font: normal normal normal 12px/normal Verdana; "><b><span class="Apple-style-span" style="font-family: Helvetica; font-weight: normal; font-size: medium; "><br></span></b></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 41.6px; text-indent: -41.6px; font: normal normal normal 12px/normal Verdana; "><b><span class="Apple-style-span" style="font-family: Helvetica; font-weight: normal; font-size: medium; ">Open the Dictionary in the Applescript Editor to see which commands VLC supports.</span></b></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 41.6px; text-indent: -41.6px; font: normal normal normal 12px/normal Verdana; "><b><span class="Apple-style-span" style="font-family: Helvetica; font-weight: normal; font-size: medium; "><br></span></b></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 41.6px; text-indent: -41.6px; font: normal normal normal 12px/normal Verdana; "><b><span class="Apple-style-span" style="font-family: Helvetica; font-weight: normal; font-size: medium; ">Best regards</span></b></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 41.6px; text-indent: -41.6px; font: normal normal normal 12px/normal Verdana; "><b><span class="Apple-style-span" style="font-family: Helvetica; font-weight: normal; font-size: medium; ">J.</span></b></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 41.6px; text-indent: -41.6px; font: normal normal normal 12px/normal Verdana; "><b><span class="Apple-style-span" style="font-family: Helvetica; font-weight: normal; font-size: medium; "><br></span></b></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 41.6px; text-indent: -41.6px; font: normal normal normal 12px/normal Verdana; "><b><span class="Apple-style-span" style="font-family: Helvetica; font-weight: normal; font-size: medium; "><br></span></b></div></body></html>