More Old File Woes

Here's where to discuss topics that have nothing to do with using SuperCard, but may be of interest to the membership.

More Old File Woes

Postby JoeKoomen2011 » Tue Jan 18, 2011 7:33 am

I used to drag a lot of scripts and graphics to the desktop when I was working in SC back in the days of diskettes. I'm clearing up archives of this stuff and have found a lot of graphic files with the ".paste" extension which I assume is the old extension for ".pictClipping" but I can seem to open these in any app, and there doesn't seem to be any resource fork to open. Anyone remember what opens this file-type? The Internet is being unhelpful today.
Joe Koomen
>> Random! ...Damn near killed 'em! <<
User avatar
JoeKoomen2011
 
Posts: 464
Joined: Thu Mar 12, 2009 1:38 pm

Re: More Old File Woes

Postby gonetriadrr » Thu Jan 20, 2011 1:04 pm

Just a guess, but those files may be bare resource data without a resource map.

DCS
gonetriadrr
 
Posts: 170
Joined: Fri Jan 08, 2010 6:50 pm

Re: More Old File Woes

Postby JoeKoomen2011 » Fri Jan 21, 2011 7:32 am

I think that's possible.

This is the header I see when I crack the file open in a text editor.

typedstreamÅËÑ@ÑÑÑNSMutableDictionary
Joe Koomen
>> Random! ...Damn near killed 'em! <<
User avatar
JoeKoomen2011
 
Posts: 464
Joined: Thu Mar 12, 2009 1:38 pm

Re: More Old File Woes

Postby gonetriadrr » Fri Jan 21, 2011 9:09 am

JoeKoomen2011 wrote:I think that's possible.

This is the header I see when I crack the file open in a text editor.

typedstreamÅËÑ@ÑÑÑNSMutableDictionary



Still just guessing.
If the file is a pre-OSX file, it looks like the newer OS has added stuff to the 'data fork' of the file.

Someone who knows something about mutableDicts might have an idea.

Personally, i would be curious to see what's in the resource fork.
There is a function in the 'resource collector' project that preps a path for shell() calls... prepPathForShell().
It has never failed me.
put prepPathForShell(macPath) into shellPath
get shell(merge("cat [[shellPath]]/..namedfork/rsrc"),1,raw)

If 'it' contains be 'HH" at what appears to be about 50 chars in (HH represents 72x72ppi) , it's quite likely a PICT.
Else, your guess is as good as mine.
If 'it' is a PICT and first 512 chars aren't nulls then prepend 512 nulls before writing 'it' to file.

Good luck!
DCS
gonetriadrr
 
Posts: 170
Joined: Fri Jan 08, 2010 6:50 pm


Return to Off Topic Lounge

Who is online

Users browsing this forum: No registered users and 1 guest