Xojo Conferences
MBSOct2019CologneDE

[Off] Windows filename extensions (Real Studio network user group Mailinglist archive)

Back to the thread list
Previous thread: Re: Cross-Platform Styled Text Class *SOLVED*
Next thread: Text Tracks


Another cross-plattform question   -   Jan Erik Moström <
  [Off] Windows filename extensions   -   Andrew Schox
   Re: [Off] Windows filename extensions   -   Aaron Ballman
   Re: [Off] Windows filename extensions   -   Chris Little
    Re: [Off] Windows filename extensions   -   Aaron Ballman
     Re: [Off] Windows filename extensions   -   Chris Little
      Re: [Off] Windows filename extensions   -   Andrew Schox
   Re: [Off] Windows filename extensions   -   Joseph J. Strout
    Re: [Off] Windows filename extensions   -   Andrew Schox
    Re: [Off] Windows filename extensions   -   Quentin Mathé <

[Off] Windows filename extensions
Date: 30.05.02 13:17 (Thu, 30 May 2002 20:17:27 +0800)
From: Andrew Schox
Hi all,

I am aware of the need for registration of creator codes for Mac
applications, but is there any similar mechanism for finding/registering
filename extensions for use in Windows?

Thanks,

Andrew

---
Subscribe to the digest:
<mailto:<email address removed>>
Unsubscribe:
<mailto:<email address removed>>

Re: [Off] Windows filename extensions
Date: 30.05.02 13:42 (Thu, 30 May 2002 07:42:59 -0500)
From: Aaron Ballman
Not currently implemented in RB, or a plugin that I'm aware of. It's all
registry work( which is available in plugin form somewhere (from what I've
heard) or simple declares). It's not too similar to the Mac way of doing
things, but if you're interested in the process, let me know, I'd be happy
to give you the gist of what you need to do.

~Aaron

----- Original Message -----
From: "Andrew Schox" <<email address removed>>
To: "REALbasic Network Users Group" <<email address removed>>
Sent: Thursday, May 30, 2002 7:17 AM
Subject: [Off] Windows filename extensions

> Hi all,
>
> I am aware of the need for registration of creator codes for Mac
> applications, but is there any similar mechanism for finding/registering
> filename extensions for use in Windows?
>
> Thanks,
>
> Andrew
>
> ---
> Subscribe to the digest:
> <mailto:<email address removed>>
> Unsubscribe:
> <mailto:<email address removed>>

---
Subscribe to the digest:
<mailto:<email address removed>>
Unsubscribe:
<mailto:<email address removed>>

Re: [Off] Windows filename extensions
Date: 30.05.02 13:46 (Thu, 30 May 2002 08:46:09 -0400)
From: Chris Little
on 5/30/02 8:17 AM, Andrew Schox at <email address removed> wrote:

> Hi all,
>
> I am aware of the need for registration of creator codes for Mac
> applications, but is there any similar mechanism for finding/registering
> filename extensions for use in Windows?
>
> Thanks,
>
> Andrew
>

There isn't. It's one of the reasons that opening files based on extension
alone is so fragile.

Chris

---
Subscribe to the digest:
<mailto:<email address removed>>
Unsubscribe:
<mailto:<email address removed>>

Re: [Off] Windows filename extensions
Date: 30.05.02 13:55 (Thu, 30 May 2002 07:55:11 -0500)
From: Aaron Ballman
> There isn't. It's one of the reasons that opening files based on
extension
> alone is so fragile.

Actually... you can register file extensions. It's just extremely rude to
do so without warning your user first..and if you register common file
types, such as .doc or .txt with your program, stealing it from Microsoft
word or other well known apps, the chances of your program being well
received in Windows is nil. Users hate apps that register themself without
asking. So a word to the wise, always popup a dialog!! :-) That being
said, it's relatively easy to associate a file type with your
application..it's a handful of registry settings and away you go.

~Aaron

---
Subscribe to the digest:
<mailto:<email address removed>>
Unsubscribe:
<mailto:<email address removed>>

Re: [Off] Windows filename extensions
Date: 30.05.02 14:53 (Thu, 30 May 2002 09:53:13 -0400)
From: Chris Little
on 5/30/02 8:55 AM, Aaron Ballman at <email address removed> wrote:

>> There isn't. It's one of the reasons that opening files based on
> extension
>> alone is so fragile.
>
> Actually... you can register file extensions. It's just extremely rude to
> do so without warning your user first..and if you register common file
> types, such as .doc or .txt with your program, stealing it from Microsoft
> word or other well known apps, the chances of your program being well
> received in Windows is nil. Users hate apps that register themself without
> asking. So a word to the wise, always popup a dialog!! :-) That being
> said, it's relatively easy to associate a file type with your
> application..it's a handful of registry settings and away you go.
>
> ~Aaron
>

I think the original poster was asking if someone maintained a global
registry of extensions in the same way that Apple maintains a global
registry of application creator types so that two apps don't use the same
creator type.

This doesn't exist on Windows.

I know that you can register file extensions on a single machine and yes it
is easy but it is also fragile. Even when apps display a dialog telling you
it is going to associate itself with a file extension it can be so cryptic
that it uses will just click through and your app loses it association with
a file type. I installed RealOnePlayer on my Windows box yesterday. It
does tell you that it is going to associate itself with some file extensions
but you have to bring up a details dialog to see the 20 or so extensions
that it is about to take over.

If you are going to go this route I would recommend that your application
have a check at start up (which can be disabled) to see if it is still
associated with the application's required file types.

Beyond that it is hard to pick a file extension that isn't already being
used by other applications. If you have the bad luck to pick a file
extension that someone is already (and decides not to let your association
happen) then the usability of your application may be lessened. It may also
mean that your applications files are accidentally opened in another
application (or another applications files opened in yours for that matter).

This last is issues can be a significant problem. I always add a signature
(in my case a 20 byte code that has a low probability of being randomly
duplicated by someone else) to the beginning of all of my non-database files
so I can decide if a file is really my app's when it is being opened.

Chris

---
Subscribe to the digest:
<mailto:<email address removed>>
Unsubscribe:
<mailto:<email address removed>>

Re: [Off] Windows filename extensions
Date: 30.05.02 15:29 (Thu, 30 May 2002 22:29:04 +0800)
From: Andrew Schox
Hi all,

> I think the original poster was asking if someone maintained a global
> registry of extensions in the same way that Apple maintains a global
> registry of application creator types so that two apps don't use the same
> creator type.

That's true, but thanks for all the other information: I didn't realise what
a chore it would be. Don't you just love Windows?

Cheers,

Andrew

---
Subscribe to the digest:
<mailto:<email address removed>>
Unsubscribe:
<mailto:<email address removed>>

Re: [Off] Windows filename extensions
Date: 30.05.02 15:20 (Thu, 30 May 2002 07:20:01 -0700)
From: Joseph J. Strout
At 8:17 PM +0800 5/30/02, Andrew Schox wrote:

>I am aware of the need for registration of creator codes for Mac
>applications, but is there any similar mechanism for finding/registering
>filename extensions for use in Windows?

No, there isn't. And you could ask the same question about OS X,
which uses file extensions instead of creator codes for routing
files. And the answer is the same: no, there isn't. You just pick
an extension you hope nobody else has thought of, and cross your
fingers. Apple calls this "progress."

Cheers,
- Joe

Re: [Off] Windows filename extensions
Date: 30.05.02 15:41 (Thu, 30 May 2002 22:41:37 +0800)
From: Andrew Schox
Joe et al,

> No, there isn't. And you could ask the same question about OS X,
> which uses file extensions instead of creator codes for routing
> files. And the answer is the same: no, there isn't. You just pick
> an extension you hope nobody else has thought of, and cross your
> fingers. Apple calls this "progress."

That's great news!

I remember ages ago (circa '92 or thereabouts), when I first tried out C++
on the Mac. There was a preprocessor (? Cfront) under MPW. I wrote a "hello
world" program to see if everything was working, and it took about a year to
compile. A couple of months ago, I got a DPG4, OSX, installed the developer
tools, wrote a "hello world" in C... and it took a year to compile (but it
did it with a better looking interface) :->.

Andrew



---
Subscribe to the digest:
<mailto:<email address removed>>
Unsubscribe:
<mailto:<email address removed>>

Re: [Off] Windows filename extensions
Date: 30.05.02 22:29 (Thu, 30 May 2002 23:29:24 +0200)
From: Quentin Mathé <
Le jeudi 30 mai 2002, à 04:20 PM, Joseph J. Strout a écrit :

> At 8:17 PM +0800 5/30/02, Andrew Schox wrote:
>
>> I am aware of the need for registration of creator codes for Mac
>> applications, but is there any similar mechanism for
>> finding/registering
>> filename extensions for use in Windows?
>
> No, there isn't. And you could ask the same question about OS X, which
> uses file extensions instead of creator codes for routing files. And
> the answer is the same: no, there isn't. You just pick an extension
> you hope nobody else has thought of, and cross your fingers. Apple
> calls this "progress."

John Geleynse from Apple User Experience group tell on Apple Human
interface mailing list (before the list closed) that, in the future,
Apple will probably create an extensions database like the current one
for types/creators... let's hope...

--