File Exchange

image thumbnail

MACOPEN

version 1.0.0.1 (1.48 KB) by Varun Gandhi
MACOPEN can be used to open a file or directory outside MATLAB on Mac OSX

6 Downloads

Updated 01 Sep 2016

View License

MACOPEN FILENAME opens the file or directory FILENAME using the OPEN terminal command. Similar to the WINOPEN windows function in MATLAB.

% Examples:
%
% If you have Microsoft Word installed, then
% macopen('/myDoc.docx')
% opens that file in Microsoft Word if the file exists, and errors if it doesn't.
%
% macopen('/Applications')
% opens a new Finder window, showing the contents of your /Applications folder.

Cite As

Varun Gandhi (2020). MACOPEN (https://www.mathworks.com/matlabcentral/fileexchange/42808-macopen), MATLAB Central File Exchange. Retrieved .

Comments and Ratings (7)

Marco

Same error here, can't expand the zip file

dwu

Unable to expand "macopen.zip" into "Downloads" (Error 1 - Operation not permitted.)

I would recommend editing line 25 in the following way:
syscmd = ['open "', inp, '" &'];
This should work better, when accessing folders or files with spaces in the names.

Haitham

It overcomes the "winopen" error on mac. Just what I need. Thanks.

It works very well. Thank you.

Updates

1.0.0.1

Updated license

MATLAB Release Compatibility
Created with R2012a
Compatible with any release
Platform Compatibility
Windows macOS Linux