Does anyone know how to detect what the filename of the m-file that
currently has focus in the editor? (It's not mfilename - that's only
the name of the currently RUNNING file.) What I would like to do is
to have a shortcut button on my toolbar that changes to the folder
containing this m-file when I click on that shortcut button. I think
this would be easier than to find the folder in the history drop down
list of 20 different Current Folders, and way easier than having to
browse to the folder via the "..." button. I could be wrong, but I
bet it's not a standard thing and it will probably have to be a Yair
Altman undocumented hack (http://undocumentedmatlab.com/#)
Currently, if I have 10 different m-files open in the editor and I
click on one, then I need to do the extra step of changing the current
folder to the folder containing that file. I'd like to simplify that
step.
Subject: Name of m-file currently being edited (not run)
ImageAnalyst <imageanalyst@mailinator.com> wrote in message <a07292bf-2896-4c96-9127-5af7788c524f@g19g2000yqo.googlegroups.com>...
> Does anyone know how to detect what the filename of the m-file that
> currently has focus in the editor? (It's not mfilename - that's only
> the name of the currently RUNNING file.) What I would like to do is
> to have a shortcut button on my toolbar that changes to the folder
> containing this m-file when I click on that shortcut button. I think
> this would be easier than to find the folder in the history drop down
> list of 20 different Current Folders, and way easier than having to
> browse to the folder via the "..." button. I could be wrong, but I
> bet it's not a standard thing and it will probably have to be a Yair
> Altman undocumented hack (http://undocumentedmatlab.com/#)
>
> Currently, if I have 10 different m-files open in the editor and I
> click on one, then I need to do the extra step of changing the current
> folder to the folder containing that file. I'd like to simplify that
> step.
NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for
all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content.
Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available
via MATLAB Central.
Read the complete Terms prior to use.