Application seen as a document

Apple hardware/software and related topics.
Forum rules
Any posts concerning pirated software or offering to buy/sell/trade commercial software are subject to removal.
User avatar
pentium
Posts: 4372
Joined: Mon Aug 28, 2006 6:29 pm
Location: Kamloops, BC

Application seen as a document

Unread postby pentium » Tue Apr 07, 2009 7:51 pm

I recently had to restore from a DDS3 backup after a striped disk failed and when I was done I noticed that a bunch of my mac programs were now just documents that I could not run.
They were still the same size but I guess the attribute that told the system what specific type of file it was was somehow lost.
Is there any way to reset that attribute or tell the system to run it anyways?
:Crimson: :Onyx: :O2000: :O200: :O200: :PI: :PI: :Indigo: :Indigo: :Indigo: :Octane: :O2: :1600SW: :Indigo2: :Indigo2: :Indigo2IMP: :Indigo2IMP: :Indy: :Indy: :Indy: :Cube:

Image <-------- A very happy forum member.

User avatar
porter
Posts: 2917
Joined: Wed Nov 01, 2006 10:37 pm
Location: NZ

Re: Application seen as a document

Unread postby porter » Tue Apr 07, 2009 7:55 pm

pentium wrote:I recently had to restore from a DDS3 backup after a striped disk failed and when I was done I noticed that a bunch of my mac programs were now just documents that I could not run.


Could you give as a clue as to what operating system, what file system, what backup format and software you used etc?

Mac files have three separate sets of information

1. data fork - like a traditional DOS or UNIX file

2. resource fork - a database of resources held as a single stream

3. finder information - holds the "type" and "creator" of the file, eg type APPL are applications.

Depending on the way you did your backup you may not have restored all three components.
Land of the Long White Cloud and no Software Patents.

User avatar
pentium
Posts: 4372
Joined: Mon Aug 28, 2006 6:29 pm
Location: Kamloops, BC

Re: Application seen as a document

Unread postby pentium » Tue Apr 07, 2009 9:22 pm

It was a bog standard NTFS backup done using the backup program that came with Windows 2000 server. I kinda blame myself actually for not stuffing the files. I find they preserve a lot better.
The restore was done using the same program.
:Crimson: :Onyx: :O2000: :O200: :O200: :PI: :PI: :Indigo: :Indigo: :Indigo: :Octane: :O2: :1600SW: :Indigo2: :Indigo2: :Indigo2IMP: :Indigo2IMP: :Indy: :Indy: :Indy: :Cube:

Image <-------- A very happy forum member.

User avatar
porter
Posts: 2917
Joined: Wed Nov 01, 2006 10:37 pm
Location: NZ

Re: Application seen as a document

Unread postby porter » Tue Apr 07, 2009 11:27 pm

In what way are they macintosh files?

I use Win2k server "Services For Macintosh" to provide appleshare directories, these then use NTFS streams to store the finder and resource information. If it knows how to do NTFS streams it should have saved recovered the files correctly.

I also have a binhex/unbinhex pair of programs that work on NTFS.
Land of the Long White Cloud and no Software Patents.

User avatar
pentium
Posts: 4372
Joined: Mon Aug 28, 2006 6:29 pm
Location: Kamloops, BC

Re: Application seen as a document

Unread postby pentium » Tue Apr 07, 2009 11:33 pm

How are they mac files?
Normally, if you are running a mac and you click on the program the installer for said program starts and the installer does the rest.
If it does help, I do have ResEdit.
Yes, I had the server running so that it handled mac files properly however I have gotten the odd hiccup once or twice where the mac suddenly forgot what several JPEG files were and I had to manually open them by first opening Picture Viewer before it remembered that they were images.
:Crimson: :Onyx: :O2000: :O200: :O200: :PI: :PI: :Indigo: :Indigo: :Indigo: :Octane: :O2: :1600SW: :Indigo2: :Indigo2: :Indigo2IMP: :Indigo2IMP: :Indy: :Indy: :Indy: :Cube:

Image <-------- A very happy forum member.

User avatar
porter
Posts: 2917
Joined: Wed Nov 01, 2006 10:37 pm
Location: NZ

Re: Application seen as a document

Unread postby porter » Tue Apr 07, 2009 11:40 pm

pentium wrote:How are they mac files?


How are they shared, using AppleShare or SMB?
Land of the Long White Cloud and no Software Patents.

User avatar
japes
Posts: 711
Joined: Thu Nov 08, 2007 4:35 pm
Location: Lynnwood, WA

Re: Application seen as a document

Unread postby japes » Wed Apr 08, 2009 12:30 am

If you open them with ResEdit do they still have their resources? Perhaps they just lost their Creator and file type.

I don't remember how Services for Macintosh works. I know it uses ntfs streams for the resource fork, does it keep a database similar to the "Desktop" database somewhere? or another stream for the creator, type and other attributes?

If the file type was lost you could use my favorite, FileTyper to make a droppable type changer (DropType? can't remember what it calls them) to drag your apps onto and change the type back.
:O3000: :Fuel: :Tezro: :Octane2: :Octane: :Indigo: :Indigo: :Indigo: :O2: :1600SW: :Indigo2: :Indigo2: :Indigo2: :Indigo2IMP: :Indigo2IMP: :Indy: :Indy: <--challenge S

User avatar
porter
Posts: 2917
Joined: Wed Nov 01, 2006 10:37 pm
Location: NZ

Re: Application seen as a document

Unread postby porter » Wed Apr 08, 2009 12:52 am

japes wrote:I know it uses ntfs streams for the resource fork, does it keep a database similar to the "Desktop" database somewhere? or another stream for the creator, type and other attributes?


It uses a stream called "AFP_AfpInfo" for the attributes.
Land of the Long White Cloud and no Software Patents.

User avatar
pentium
Posts: 4372
Joined: Mon Aug 28, 2006 6:29 pm
Location: Kamloops, BC

Re: Application seen as a document

Unread postby pentium » Wed Apr 08, 2009 9:39 am

Yes, I use Appletalk to connect my macs to the server.
Anyways, I tried opening it with ResEdit and it tells me it has no resource fork and opening it will create one.
So it looks like at least the resource fork is all messed up.
:Crimson: :Onyx: :O2000: :O200: :O200: :PI: :PI: :Indigo: :Indigo: :Indigo: :Octane: :O2: :1600SW: :Indigo2: :Indigo2: :Indigo2IMP: :Indigo2IMP: :Indy: :Indy: :Indy: :Cube:

Image <-------- A very happy forum member.

noisetonepause
Posts: 306
Joined: Mon Jan 29, 2007 5:57 pm
Location: Copenhagen - Denmark

Re: Application seen as a document

Unread postby noisetonepause » Wed Apr 08, 2009 9:48 am

More likely it's been zapped. This happens when the file gets handled by anything which isn't aware of forks. Are you sure whatever you used to archive to tape is fork savvy?

There's no way to recover from it, sadly. Basically half the file's gone.

User avatar
pentium
Posts: 4372
Joined: Mon Aug 28, 2006 6:29 pm
Location: Kamloops, BC

Re: Application seen as a document

Unread postby pentium » Wed Apr 08, 2009 11:54 am

Damn. Well, I guess I'll have to either hope that I backed it up elsewhere or I still have it on one of my other mac hard drives.
:Crimson: :Onyx: :O2000: :O200: :O200: :PI: :PI: :Indigo: :Indigo: :Indigo: :Octane: :O2: :1600SW: :Indigo2: :Indigo2: :Indigo2IMP: :Indigo2IMP: :Indy: :Indy: :Indy: :Cube:

Image <-------- A very happy forum member.


Return to “Apple”

Who is online

Users browsing this forum: No registered users and 1 guest