Running Applescript during MATLAB code
Afficher commentaires plus anciens
I am in need of a way to collect biometric data via arduino and timelock that data collection with the onset of playing a video. It was suggested that I write an Applescript to open and play the video and call that script from within the MATLAB code after baseline data had been collected. The AppleScript works perfectly from the Script Editor, however, I get an error telling me the file cannot be located when trying to call it from MATLAB. I also tried using addpath for the folder where the script and MATLAB code is located, but that resulted in the same error. Any suggestions on why I'm getting this error? Here is the MATLAB code line and error:
MATLAB code used: status = system('osascript VideoPlay.scpt');
Error message: osascript: VideoPlay.scpt: No such file or directory
1 commentaire
Walter Roberson
le 20 Nov 2016
Modifié(e) : Walter Roberson
le 20 Nov 2016
It seems unlikely to me that you would be able to time-lock the video playing with any accuracy with this method.
Are you using psychtoolbox ? What kind of video is it (e.g., AVI) ? Do you have the computer vision toolbox? Does the video have sound?
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Video capture and display dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!