Export Backup Extension

Robert Deskin's Avatar

Robert Deskin

22 Jun, 2024 04:27 PM

I export a backup every week just in case and keep 3 months wort. When I select Export Backup, the file dialog opens. I name the backups with the current date as Moneydance YYMMDD.moneydancearchive. However, if I select a previous backup in order to keep the file name but change the date, the selected filename is shown but not the extension "moneydancearchive". Is there any way to retain the extension?

  1. 1 Posted by Stuart Beesley ... on 22 Jun, 2024 05:11 PM

    Stuart Beesley (Mr Toolbox)'s Avatar

    Mac or Windows?

    Do you have extensions visible in the Os?

  2. 2 Posted by Robert Deskin on 22 Jun, 2024 05:20 PM

    Robert Deskin's Avatar

    Thanks for the fast reply. Mac running the latest Sonoma 14.5. The extensions are visible. I’ve attached a couple of screen shots. The first is the initial file dialog. The second is after selecting one of the existing entries where I would change the date.

    

  3. 3 Posted by Robert Deskin on 14 Jul, 2024 06:55 PM

    Robert Deskin's Avatar

    Anything new on this?

  4. 4 Posted by sth on 17 Jul, 2024 02:21 AM

    sth's Avatar

    Check Get Info on a file to see if there really is an extension or not (CMD-I).

    Finder -> Settings, is "show all filename extensions" checked?

    When you are renaming a file are you erasing the extension?

    (NOT IK Support)

  5. 5 Posted by Stuart Beesley ... on 17 Jul, 2024 10:47 AM

    Stuart Beesley (Mr Toolbox)'s Avatar

    It seems to be a Mac thing with FileDialog and only occurs on some file types... investigating....

  6. 6 Posted by Stuart Beesley ... on 17 Jul, 2024 11:14 AM

    Stuart Beesley (Mr Toolbox)'s Avatar

    In fact it seems to auto hide all extensions whereby the MD install configures certain extensions being registered to Moneydance.

  7. 7 Posted by Stuart Beesley ... on 17 Jul, 2024 11:43 AM

    Stuart Beesley (Mr Toolbox)'s Avatar

    You can see it if you run this code in the Developer console...

    from java.awt import FileDialog
    from java.io import File
    from java.lang import System
    
    theDir="/Users/Downloads"
    theFile="testbackup.moneydancearchive"
    
    System.setProperty("apple.awt.fileDialogForDirectories", "");
    System.setProperty("apple.awt.use-file-dialog-packages", "");
    
    print "apple.awt.fileDialogForDirectories:", System.getProperty("apple.awt.fileDialogForDirectories")
    print "apple.awt.use-file-dialog-packages:", System.getProperty("apple.awt.use-file-dialog-packages")
    
    
    fd=FileDialog(None, "test backup", FileDialog.SAVE)
    fd.setDirectory(theDir)
    fd.setFile(theFile)
    fd.setVisible(True)
    
    print "File: '%s'" %(fd.getFile())
    print "Dir : '%s'" %(fd.getDirectory())
    

    Try selecting files with moneydance and then non moneydance extensions..

    So this is a java/Mac bug / feature..... Hmmmmm

  8. 8 Posted by Robert Deskin on 17 Jul, 2024 01:48 PM

    Robert Deskin's Avatar

    Check Get Info on a file to see if there really is an extension or not (CMD-I). -> YES

    Finder -> Settings, is "show all filename extensions" checked? -> YES

    When you are renaming a file are you erasing the extension? -> NO. In the save file dialog, I select a file from the list, and they all have the extension before selection, and the file name shows in the name field but not the extension. It’s only when I select a file from the list. If I use the suggested file/extension already in the name field, I can rename it without losing the extension.

  9. 9 Posted by Robert Deskin on 17 Jul, 2024 01:52 PM

    Robert Deskin's Avatar

    Moneydance is the only app where I’ve seen this issue. I don’t know if I have any other Java apps installed.

  10. 10 Posted by Stuart Beesley ... on 17 Jul, 2024 07:17 PM

    Stuart Beesley (Mr Toolbox)'s Avatar

    I've proposed a workaround code fix for this issue to IK (under review).. The workaround will detect if the extension was dropped and re-add it... It will also detect/warn if 'invalid' extensions are being requested... In visual terms, the extension will still drop, but it will get added again once you click the button to proceed as a safety net...

  11. 11 Posted by Robert Deskin on 17 Jul, 2024 07:39 PM

    Robert Deskin's Avatar

    Thank you.

  12. 12 Posted by Stuart Beesley ... on 25 Jul, 2024 07:26 AM

    Stuart Beesley (Mr Toolbox)'s Avatar

    The latest PREVIEW fixes / addresses this issue.
    https://infinitekind.com/preview

  13. 13 Posted by Robert Deskin on 25 Jul, 2024 12:54 PM

    Robert Deskin's Avatar
    Thanks for the notification. I’ll try it. 
    Bob

    On Jul 25, 2024, at 3:26 AM, Stuart Beesley (Mr Toolbox) <[email blocked]> wrote:

     pre { width: 92%; margin: 10px 2%; padding: 5px 2%; background: rgb(239, 239, 239); border: 1px solid rgb(214, 214, 214); } blockquote { margin-left: 0px; padding-left: 1em; border-left-width: 5px; border-left-style: solid; border-left-color: rgb(204, 204, 204); }

    // Please reply above this line
    ==================================================

    From: Stuart Beesley (Mr Toolbox)

    The latest PREVIEW fixes / addresses this issue.
    https://infinitekind.com/preview

    On Wed, Jul 17 at 12:39 PM PDT, Robert Deskin wrote:

    Thank you.

    Having trouble reading this? View this discussion online: Export Backup Extension.

    Reply with #ignore to stop receiving notifications for this discussion.

  14. 14 Posted by Robert Deskin on 25 Jul, 2024 07:43 PM

    Robert Deskin's Avatar

    Just tried it and it still does the same thing as before. If I select an existing file in the save dialog, the file name shows in the file name box but the extension still disappears. I read the description of what was fixed and it said that this was a macOS bug. I have never seen this issue in any other app. Maybe it’s Java specific. As far as I know, I don’t have any other Java apps running, although it’s not easy to tell.
    Bob

  15. 15 Posted by Stuart Beesley ... on 25 Jul, 2024 07:45 PM

    Stuart Beesley (Mr Toolbox)'s Avatar

    Correct... But when you actually click the save button, the .extension gets appended as it should so you will get the right name.extension... Try it...

    It's an Apple/Java thing that is hiding extensions that are bundled with the same app/package.. There is no other way to fix it..

    Let me know?

  16. 16 Posted by Robert Deskin on 25 Jul, 2024 07:52 PM

    Robert Deskin's Avatar

    Yes that works. Something I’ll have to remember.

    Thanks for interfacing with the developers and keeping me updated. Much appreciated.

    Bob

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac