[F] TidBITS  / TidBITS  / TidBITS Talk  /

Changing file formats by changing file names

[Jason.]Jason. - 05:22am Sep 12, 2006 PST

BBEdit has long been one of my favorite applications, and the recent 8.5 update solidifies its leader position.

<http://db.tidbits.com/article/8672>

One of the new features it added was the ability to open and read gzipped files directly, without the need to expand it first, which is quite handy.

It also added the ability to save documents as gzipped, simply by saving the file with a ".gz" or ".gzip" extension.

I think this is a terrible idea.

It's bad enough that OS X will look at a file named "foo.gz" and presume it's in fact a gzipped file. It's worse that BBEdit now will change the file type based on the particular extension.

If I were saving a file named "i.dont.like.gzip", why should BBEdit assume it's a gzip file? While I think it's great that I can open such a file, and edit the text directly, the choice to save it as a gzipped file should not be based on filename.

I didn't like it when Stuffit had this feature in the Finder (add ".sit" to make the file a sit archive), and I don't like it now. What's next? Changing "SomePicture.jpg" to "SomePicture.png" to convert the file to a png?

Don't get me started on how OS X handles file extensions in the first place. I'm sure Bare Bones' decision stems directly from OS X's unfortunate reliance on file extensions to determine type.


Mark as Read
  OutlineAll MessagesOlder MessagesOldest MessagesNewest MessagesNewer Messages

Lewis Butler (apparently) - Sep 14, 2006 12:48 pm (#1 Total: 7)  

Reply to this message
via email  

Photo of Author
Posts: 930
Re: Changing file formats by changing file names

On 12 Sep 2006, at 06:22 , Jason. wrote:
> If I were saving a file named "i.dont.like.gzip", why should BBEdit
> assume it's a gzip file? While I think it's great that I can open
> such a file, and edit the text directly, the choice to save it as a
> gzipped file should not be based on filename.

Wow. I have to disagree 100%. This is one of my favorite things
about Graphic Converter. Glad too see it's in BBedit too, though I,
for one, will rarely use it.

> Changing "SomePicture.jpg" to "SomePicture.png" to convert the file
> to a png?

That would be awesome!


--
Stomach in! Chest out! on your marks! get set! GO! Now, now that
you're free, what are you gonna be? Who are you gonna see? And
where, where will you go, and how will you know you didn't get it all
wro-o-o-o-o-ng?



Chris Pepper (apparently) - Sep 15, 2006 7:05 pm (#2 Total: 7)  

Reply to this message
via email  

Photo of Author
Posts: 838
Re: Changing file formats by changing file names

At 5:22 AM -0700 2006/09/12, Jason. wrote:

>One of the new features it added was the ability to open and read
>gzipped files directly, without the need to expand it first, which
>is quite handy.
>
>It also added the ability to save documents as gzipped, simply by
>saving the file with a ".gz" or ".gzip" extension.
>
>I think this is a terrible idea.

>If I were saving a file named "i.dont.like.gzip", why should BBEdit
>assume it's a gzip file? While I think it's great that I can open
>such a file, and edit the text directly, the choice to save it as a
>gzipped file should not be based on filename.

        I see this as Bare Bones simplifying the Save As interface.
In Office, you'd choose a file type, and it would automatically
append the appropriate suffix. You could change the suffix, and that
wouldn't change the type, though.

        I don't have 8.5 yet, but it sounds like they removed the
direct control over file format, which is a UI simplification;
arguably there should be an option to use .gz as a suffix without
compressing the file, but it would confuse some people.

        If you're working with the file in BBEdit, why does it matter
if it's compressed? BBEdit will read it the same as a plain ASCII
file, so you just save some disk space. If you're working with other
people, sending them ASCII files with a .gz suffix is just going to
cause your correspondents headaches.

>I didn't like it when Stuffit had this feature in the Finder (add
>".sit" to make the file a sit archive), and I don't like it now.
>What's next? Changing "SomePicture.jpg" to "SomePicture.png" to
>convert the file to a png?

        I never used this feature of Magic Menu. But that's
*changing* a file on disk, not controlling creation of a new file
(which was never saved in plain text format).


                                                Chris
--
Chris Pepper: <http://www.reppep.com/~pepper/>
                             <http://www.reppep.com/weblog/pepper/>
Rockefeller University: <http://www.rockefeller.edu/>

Jonathan Wight - Sep 19, 2006 5:27 am (#3 Total: 7)  

Reply to this message
 

Photo of Author
Posts: 1
Re: Changing file formats by changing file names

This may be a terrible idea for you but to me it is a real help. I edit/read a lot of pre-existing files that have been gzipped, including apache logs and (on occasion) Keynote/Pages document files. This little feature is very handy.

kendall - Sep 19, 2006 5:27 am (#4 Total: 7)  

Reply to this message
 

Photo of Author
Posts: 5
Re: Changing file formats by changing file names

This is one of my favorite things about Graphic Converter.


Er, I just tried this in GraphicConverter 5.9.1 and it does not do this (thankfully). Sure, it saved the filename I asked it to; but reopening it & checking properties, I see that my GIF98a file is still a GIF98a file.

Kendall

Nigel Stanger (apparently) - Sep 20, 2006 3:22 am (#5 Total: 7)  

Reply to this message
via email - Dunedin, New Zealand  

Photo of Author
Posts: 412
Re: Changing file formats by changing file names

On 20/9/2006 12:27 AM, "kendall" <kendallhis.com> spake thus:

> Er, I just tried this in GraphicConverter 5.9.1 and it does not do this
> (thankfully). Sure, it saved the filename I asked it to; but reopening it &
> checking properties, I see that my GIF98a file is still a GIF98a file.

At the bottom of the save dialog there is a check box "Set format from
extension". It's turned off by default. Turn it on and try changing the file
extension; you'll see that the format popup menu updates accordingly.

--
Nigel Stanger, Dunedin, NEW ZEALAND.
http://xri.net/=nigel.stanger


kendall - Sep 21, 2006 11:14 am (#6 Total: 7)  

Reply to this message
 

Photo of Author
Posts: 5
Re: Changing file formats by changing file names

It's turned off by default. Turn it on and try changing the file extension; you'll see that the format popup menu updates accordingly.

Ah! I missed that checkbox, thanks for pointing it out. An option like that, off by default, seems fine to me. Especially for a special program like GrapicConverter, where one of the biggest features is converting between almost every graphic format on the planet.

Just doing it built-in, between totally unrelated formats -- like text & gzip -- doesn't make sense to me. (But I'm always in favor of options, esp. if the weirder ones like this are off by default.)

Lewis Butler (apparently) - Sep 21, 2006 11:14 am (#7 Total: 7)  

Reply to this message
via email  

Photo of Author
Posts: 930
Re: Changing file formats by changing file names

On 20 Sep 2006, at 04:22 , Nigel Stanger wrote:
> On 20/9/2006 12:27 AM, "kendall" <kendallhis.com> spake thus:
>> Er, I just tried this in GraphicConverter 5.9.1 and it does not do
>> this
>> (thankfully). Sure, it saved the filename I asked it to; but
>> reopening it &
>> checking properties, I see that my GIF98a file is still a GIF98a
>> file.
>
> At the bottom of the save dialog there is a check box "Set format from
> extension". It's turned off by default. Turn it on and try changing
> the file
> extension; you'll see that the format popup menu updates accordingly.

WHy would you want a gif file saved with a png or jpg extension
though? Security through obfuscation? Most reader will look at the
file headers anyway, so what's the point?

This is one of the best things about Graphic Converter as far as I am
concerned.

Now, if I can just get R*ch to extend BBEDit to work with bz2 files too.

--
...gentlemen in England now a-bed Shall think themselves accursed
they were not here,





  OutlineAll MessagesOlder MessagesOldest MessagesNewest MessagesNewer Messages


 [F] TidBITS  / TidBITS  / TidBITS Talk  / Changing file formats by changing file names




Add a message

To add a message to this discussion, you must be a registered user. Enter your email address below. If you have an account associated with the email address you enter, you will be prompted for your password. If not, you'll be able to create a new account with no fuss.

Enter your email address:

Submit