3.4.2 "Save as" does not update file pathname in Score Properties

• Feb 13, 2020 - 17:05

Title says it all. This is very, very bad -- you don't know where your file is going.

OS: macOS 10.15, Arch.: x86_64, MuseScore version (64-bit): 3.4.2.25137, revision: 148e43f


Comments

To me it's not a bug. It's showing you where the file was loaded from, and Save As doesn't change that fact. But if the majority of users feel it would be more useful to show saved-to location instead of loaded-from location, that would seem a harmless enough behavior to change.

In reply to by Marc Sabatella

I can't understand this line of thinking. The notion of file-pathname associated with a buffer is constant across every (other) application I have ever used, going back to printing-terminal days. This does not make any sense at all to me. In that case, the sca34344 thing isn't a bug either. No, with all due respect, please clear your glasses. The notion of file pathname associated with a document is not up for negotiation. Try any word processor, editor, etc. of your choice.

In reply to by [DELETED] 1831606

Could be, but like I said it seems perfectly natural me. not sure what other program I could try to that presents similar info to see how they do it. Feel free to provide some examples I could try on either Windows or Linux (I have no Mac to test on). If there is evidence lots of other programs present a similar thing differently, and people generally prefer that other method, no reason we couldn't change it. I rather it doubt it's something most people have actually given much thought too in terms of having preconceived expectations, though.

In reply to by Marc Sabatella

How about MS Word. How about Emacs on any system. How about Notepad. How about any program that supports "save as"? Pity the poor user who has file A open, writes it out (modified) to B, and then reads A in again and now has two buffers claiming to be A. I do this very often. I can't imagine any argument in favor of the current, extremely exceptional behavior. If it has to be kept, please give me another way to find the correct pathname of an open file.

In reply to by Marc Sabatella

I am talking about the pathname that appears in Score Properties after Save As has been used. I don't have notepad in front of me, but other applications let me know the correct pathname of the file being edited. MuseScore does not. "The correct pathname of the file being edited" is well defined. It is either undefined (for a new file), the last place it was read from, or the last place it was written to, whichever is later (operations with autosave files excepted)

In reply to by [DELETED] 1831606

So as I said, if you can name a handful of programs and provide the specific commands to display the metadata for the open document, we can look at which programs update that metadata when. I'm not saying you are wrong that it's probably more common to update it on every save. But I also don't think I'm wrong that the vast majority of users have never given this a second thought. Which is no doubt why there have been zero complaints about this in the decade (at least) it has been so...

In reply to by Marc Sabatella

That's not reasonable, to issue a fake request to save it. Other programs (e.g., Emacs) have "list buffers" that show the pathnames of open files. Score Properties displays an untruth.

I just found a way on the Mac; if you click right on the file name in the title bar, it displays a "stack" of folders the likes of which I have never seen on a program on the Mac, but it has the information.

The title bar should show the full pathname, and Score Properties should display the correct pathname. Issuing a Save As and then cancelling it is not reasonable.

In reply to by Marc Sabatella

So it is not important to you to know which directory a file being edited is in? Well, it is to me; I often have different copies when I download files from the site, and it is important to me to know if a file is in the Download directory or the MS 2 or 3 scores directory, all the time every time. It must not be so important to others.

In reply to by [DELETED] 1831606

I like to know this too, at various times. Mostly when I'm opening or saving the score. If I want it at other times, I often make that information - and other information that might not be apparent just from knowing the pathname - visible on the score itself. Knowing I imported a score from MuseScore 2 doesn't tell me it is string quarter versus wind octet, for example. Or that's it's a working draft versus the version we performed on such-and-such a date. Lots of info to know about a score, pathname is only a piece of the puzzle. But when it is relevant, it's still likely to be interesting to know both opened-from and saved-to.

In reply to by Marc Sabatella

Word (365 business version) shows the full path in the file info pane, which you get in a single click by pressing file on the ribbon.
Notepad++ shows them in the titlebar as well as in the tooltip for the file tab. → The tooltip solution is something I'd like to see in MuseScore as well.
QtCreator shows them as tooltip when hovering over the file switcher dropdown (titlebar is short name only). So does Visual Studio

So to me it seems MuseScore is definitely lacking the tooltip option and the only other software in this list that has anything resembling the Score Properties screen is Words info pane.
All of these always show the most recent/actual location for the file.

In reply to by frfancha

I'd expect the title bar, as well as Save As, to show me the current ("new") path - both folder and filename. But again, that's not what we're talking about here - it's specifically about Score Properties, and under which situations this particular bit of metadata should happen to be automatically updated.

In reply to by frfancha

I guess there is a problem here when a file is opened from the MuseScore 2 directory, and MS will write it to MS3 if and when you save it. In that case, pathname of the file is ill-defined between those two events. But that seems scant for it to be difficult to ascertain the pathname in all other cases.

In reply to by [DELETED] 1831606

I guess I'm just too hung up on what directory a file lives in, and whether two similar looking things are the same thing or not -- perhaps left-over EQ/EQUAL distinction from being a long-time Lisp programmer. It must not be as important as I think it is.

I took a look at Notepad on Windows -- it is indeed difficult to find out what directory the file lives in.

It seems that other Mac apps support (as does MS) clicking right on the title in the title bar to find the "directory stack" (although not in copyable form). Maybe that's adequate. I must be living in an obsolete world where file pathname is the most fundamental fact about a file you are editing, but it's not so important any more.

Why on earth, though, Score Properties "file pathname" is not obligated to be accurate I don't understand.

In reply to by [DELETED] 1831606

Sure, pathnames are very good to know - mostly, at the moment you are opening or saving a file, primarily. I see it this way: just as created and modified date are both interesting things to now, so is opened-from and saved-to pathname. We don't complain that the created date does not tell us the modified date or say it is "inaccurate" because it is not the same as modified. Similarly, I don't see any particular reason to complain that the opened-from path doesn't tell us the saved-to path or say it is inaccurate just because it isn't the same. Instead, I'd simply observe it might be nice to have both pieces of information available side by side in the same interface, and Score Properties seems a lovely place to do that.

But FWIW, I do think most younger people think of tree-structured file storage hierarchies as being somewhere in-between quaint and archaic; older people who didn't grow up with them tend to find them completely bewildering. Consider, most mobile apps provide a flatter storage structure, with individual app storage areas, and tagging, categorization, and/or search facilities provided to make it possible to have much richer organization than a tree structure. That way you can have your recording of Rudolph Serkin performing Clair de Lune filed under Serkin, Clair de Lune, and Debussy all at once, without necessarily worrying about which folder/directory you put the dang thing it. This sort of organization is actually something of a religion ("digital asset management") among people who deal with really large numbers of files, like professional photographers.

In reply to by frfancha

OK. I'm trying to follow what the problem is here.
I have a score open in MuseScore that I loaded from the score folder. I work on it and save it in a different pace with the same name. But Score Properties still shows the file path as the one I loaded the score from not where I saved it to. Even if I save as a different name in a different place, Score Properties doesn't change. If I close that score and re-open, from the new location, Score Properties is updated.
Notepad has no file properties view.
Word does not show the complete path for an open doc. that I can find. It will show a folder.
I'm not sure why I would use save as to find anything.
When I make significant changes to a score, I add a suffix to the title (through save as) in case I want to go back to the previous version. After all is done, I can delete the old versions. I can't remember ever needing to know the file path of whatever I'm working on.
Or have I missed the point of the complaint?

In reply to by [DELETED] 1831606

Sure, I need to know the location, but not necessarily the full path. The computer I use most of the time has one drive. I don't have several files open at once. MuseScore files or otherwise. That's asking for trouble, to me. I don't use cmd to open anything but a few routines. I can't think of a time I opened the same file in different software. Delete is easy. I don't use the online upload. As I don't upload.
I mainly commented because I'm open to doing something better than the way I currently do things. But frankly I've never used the Score Properties option.

Do you still have an unanswered question? Please log in first to post your question.