David,
The generic icon is probably showing up since the file has lost its
resource fork which contains the Creator & Type codes. Without
this info, you get a generic icon and the system doesn't know what
application to use for opening the file.
To confirm this, download a utility that allows editing of resource
forks (there are many), open up the good copy of the file to get
its Creator & Type codes, then apply these codes to the bad file.
............................................
DULOCK CONSULTING
Bryan Dulock | ACTC 10.4
281-584-0476
Houston, Texas
On Aug 31, 2006, at 10:16 AM, David Knuth wrote:
Hi,
I have an Xserve running 10.4.7 with a software RAID across two 40
GB drives. The RAID is configured as mirrored and was set up using
Disk Utility.
On the RAID are our electrical schematics for our custom circuit
boards, which were created using DesignWorks. This is an
application that has had the minimal amount of work done to it to
make it run on OS X, since it was created back in the System 7
days (I think).
I went to open the schematics today, only to find their icons were
gone, replaced by the generic blank document icons. When I double
click a schematic, I get the dialog asking me to choose an
application to open it. I navigate to DesignWorks, but it is
grayed out. I then change the constraint from Recommended
Applications to All Applications from the popup menu and can
select DeisgnWorks.
Then a new dialog appears that says:
An error occurred while changing the application that opens
"schematic" because not enough information is available.
Do you want to open "schematic" with "DesignWorks"?
I click Update (as opposed to Cancel or Don't Update).
DesignWorks opens and then beeps. The file does not open.
I do have an exact copy of this file that was archived long ago
with Stuffit, sitting on this same RAID. I unarchived it and saw
the icon is there. I can double click it and open the file.
The mystery in this is that the sizes of these two files are
identical when I do ls -l, but the Finder is reporting the failed
file is 4 kB larger than the working one.
Also, using diff on the two files shows no difference. To beat a
dead horse deader, I did xxd on the files and compared the hex
dumps of each. They, too, are identical.
If I copy both files from the Xserve to my desktop, the problem
follows the file. The previously archived one comes across with
the icon and can be opened. The failed one comes without and icon
and cannot be opened.
So, why can't DesignWorks open the failed file, when it is
identical (from all measurements I can make) to the archived
version? And why is the Finder reporting a difference in size
when the shell is not? Is there a .DS_Store file or something
like that I can delete to fix this?
Is the file really corrupt? I don't believe it is. Ideas?
David
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macos-x-server mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/macos-x-server/gcerullo%
40pixelpointstudios.com
This email sent to email@hidden