Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#19 Save dialog should append .sk

open
nobody
None
5
2001-12-30
2001-12-30
Gregor Hoffleit
No

I'd like to forward this request
(http://bugs.debian.org/109225) by a Debian user, Thimo
Neubauer <thimo@debian.org>:

"It would be great, if the save-dialog appended the
suffix ".sk" if no suffix is given"

Sounds like a valid suggestion to me.

Gregor

Discussion

  • Scott Johnston
    Scott Johnston
    2002-04-30

    Logged In: YES
    user_id=406

    It would also make sense if the SaveAs dialog would change
    the suffix from .sk to .svg or .pdf or .ai to match the
    "Files of type" button as it is changed. I incorrectly
    assumed the output format would be governed by this button
    instead of the suffix. (from 0.6.13)

    Scott Johnston

     
  • Logged In: YES
    user_id=2369

    About appending .sk:

    Personally, I don't like programs appending suffixes to
    filenames automagically, so I didn't do that in Sketch. I
    wouldn't have a problem with doing that in this particular
    case (i.e. append .sk when the filename doesn't have an
    extension), if that's what the users prefer.

    About depending on the extension to determing the file
    format:

    Unfortunately, the only information Sketch gets from Tk's
    file dialog is the filename. Information about the selected
    file format is not available. Possible fixes would be to try
    to get at that information anyway if possible (which seems a
    bit unlikely and it might be very tk version specific) or to
    implement a new Filedialog (or reuse an old one from Tkinter
    from before Tk had a file dialog IIRC). Neither solution is
    very elegant and there's probably nobody with the time or
    inclination to implement either of these.