A way to find out the location(path) of the current file
Is there a way to find out the location of the currently loaded file in Ms?
Is there a way to find out the location of the currently loaded file in Ms?
Do you still have an unanswered question? Please log in first to post your question.
Comments
Score::filePath(), Score::absoluteFilePath(); Score::fileInfo() would be candidates
In reply to Score::filePath(), by Jojo-Schmitz
Sorry, my question is a bit incomplete: I wanted to ask whether there is a way to find that out from the user interface! Not from the plugin framework...
In reply to Sorry, my question is a bit by TromboRafi
And my reply wasn't even about plugin framework, but programatically.
In Windows, if you open the menu item: 'File' and go to 'Open Recent', the file name should be displayed in the drop down list, showing the paths of the recent files.
Regards.
In reply to Path of current file by Jm6stringer
In 2.0 in linux this is not the case, which is why I am asking.
I'm trying to write a plugin that does this, but ideally the location should be shown in the program(I think).
In reply to In 2.0 in linux this is not by TromboRafi
Again, it would be better to discuss this topic in the tech preview forum.
I removed the full path of the file in "Open Recent" recently. The full path should be displayed in a tooltip if the system support tooltips in Menus (MacOSX doesn't)
I did it for several reasons. The menu was getting too large. Most users don't care about where the scores is saved. The development version has a "Scores" folder where the scores should be saved by default.
In reply to Again, it would be better to by [DELETED] 5
What about subfolders then?
I have really many, because putting really many scores in one folder is a bad idea for organization. I think it should be easier than an undiscoverable tooltip...
In reply to What about subfolders then? I by TromboRafi
I also took a look to what other apps are doing. Some of the "programmers" oriented apps I use, Qt Creator, Sublime text are using full paths. Notably Eclipse and XCode don't. "Consumers" apps like Adobe suite, PDF readers don't...
Maybe we could improve and use the relative path from the Scores folder for scores saved there and absolute paths for others...
In reply to I also took a look to what by [DELETED] 5
I like the relative path from Scores idea. My scores are mostly under Score, but in various subfolders. Right, I'm also opening scores from my (separate) 1.3 folders as well. I'll open a 1.3 file from one of my 1.3 folders, save it to one of my 2.0 subfolders, and now I have two identically-named entries in the Recent list and I don't know which is which. Full paths all the time was indeed overkill, but I do think we need to address this somehow.
BTW, the tooltips aren't working for me, either.
Also, some programs put full path in the window title. Some even provide an option to control this.
In reply to Again, it would be better to by [DELETED] 5
You mean in 63d4801?
Seems on Windows 7 tooltips don't work either, at least I don't see one. I do see other tooltips though, like when hovering over the note value Icons.
And the comment in https://github.com/musescore/MuseScore/blob/63d48010c63c7563167300c072f… talks about "// show complete path"
Edit: bogus comment fixed as part of PR #880
In reply to Again, it would be better to by [DELETED] 5
Tooltips in general don't work on menus, apparently, but can be made to work (not for Mac though):
http://qt-project.org/faq/answer/how_can_i_add_tooltips_to_actions_in_m…
StatusTip, i.e. a hint in the Status bar might be an Option?
In reply to Tooltips in general don't work on menus by Jojo-Schmitz
Just tested: setStatusTip() doesn't help either, it doesn't show anything in the status bar on Windows 7