Opening "external" files in a compiled Mac program
Afficher commentaires plus anciens
Hello
I have a program that has a button to open an external .pdf file.
when I run via Matlab, I have the button call this code
system([sprintf('open %s',path)]);
where path is the name of the file to be opened, and this works fine.
I then compiled the program on Mac, and included the external files within the compiled executable.
However, when I run the program, nothing happens when I click the button
Can you help explain why this happens and how I can fix it? Do I somehow need to call the files differently if they reside within the compiled executable?
thanks!
1 commentaire
Anton Kogios
le 6 Fév 2024
Not too sure if this will work, but you may need to allow (full) disk access to the executable in System Preferences.
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur MATLAB Compiler 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!