Re: Creator code and file extension
Re: Creator code and file extension
- Subject: Re: Creator code and file extension
- From: Rainer Brockerhoff <email@hidden>
- Date: Thu, 9 Oct 2003 14:21:03 -0300
At 18:45 -0700 08/10/2003, email@hidden wrote:
>
Subject: Creator code and file extension
>
From: Jay Teo <email@hidden>
>
>
I know some folks consider creator codes and type codes evil and should
>
be banished. However, many users of my batch imaging app have written
>
to request for the option to bind the output files with the application
>
of their choice. I found that a fair enough request and so am trying to
>
implement it.
>
>
I believe my app is setting the creator and type codes correctly.
>
However, the file extension seems to be taking precedence over the
>
creator code.
>
>
> GetFileInfo jane.jpg
>
file: "jane.jpg"
>
type: "JPEG"
>
creator: "8BIM"
>
attributes: avbstclinmEd
>
created: 10/08/2003 15:02:17
>
modified: 10/08/2003 15:02:17
>
>
As shown by GetFileInfo, the creator in this case is set to 8BIM
>
(Photoshop). But double-clicking on this file still opens it in
>
Preview. Now if I just rename this file to "jane" (removing the
>
extension), double-clicking opens it in Photoshop.
>
>
After hours of Googling and searching this archive, I am at a loss.
>
Isn't the creator code supposed to take precedence over the file
>
extension? Any help appreciated.
The official order is creator, extension, type. But for a particular combination of metadata, the user can register binding exceptions which then will take precedence over these three. Check out your files in XRay's "Type, Creator & Extension" panel, which shows this very clearly - and also allows you to change things around to see what happens.
--
Rainer Brockerhoff <email@hidden>
Belo Horizonte, Brazil
"In the affairs of others even fools are wise
In their own business even sages err."
Weblog:
http://www.brockerhoff.net/bb/viewtopic.php
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.