Error loading .m job file via OspreyGUI in Windows

Hi everyone,

I’m running into an error whenever I try to load a .m job file using the standalone OspreyGUI. I’m using Osprey 2.9.0, downloaded from the github release page, installed on Windows 11. Whenever I load a .m job file, I get the following error:

Timestamp March 10, 2025 09:23:50 Osprey 2.9.0  OspreyGUI
Error using run
RUN cannot execute the file 'C:\Program Files\OspreyGUI\exampledata\sdat\MEGA\jobSDAT_MEGA.m'. RUN requires a valid MATLAB script

Error in OspreyJob (line 65)

Error in Osprey/loadJob (line 101)

Error in Osprey/onLoadJob (line 169)

Error while evaluating UIControl Callback.

This seems to happen with any .m job file, including those that have no problem loading when running Osprey via MATLAB (using the current develop branch of 2.9.6). I have tried loading job files from other folders, in case there is a permissions issue, but they all give the same error.

Interestingly, the standalone GUI doesn’t seem to have any problem loading .json job files. I looked up the error online, and it seems like the “run” function may not be supported when called from a compiled MATLAB application, but I’m not sure. Thanks for the help!

Sincerely,
Keith Jones