Re: Recreating Resource fork from data file?
Re: Recreating Resource fork from data file?
- Subject: Re: Recreating Resource fork from data file?
- From: Chris Espinosa <email@hidden>
- Date: Sat, 1 Jan 2005 17:36:14 -0800
On Jan 1, 2005, at 8:07 AM, Gary Mielke wrote:
The recent posting of removing a resource fork has prompted this
question
which is the opposite.
Has anybody successfully created a OSX compatible apple script that
would
automatically re-create all resource forks from the original data
file? Is
it even possible? Or is it possible to relink the resource fork?
The reason I am asking, is that I have some old data that is being
brought
back that has the structure in tack but the data file does not
recognize
it's resource link. For example:
/Volumes/Test/image1
/Volumes/Test/.rsrc/image1
Any help or suggestions would be appreciated.
Are you saying that there's a file called Image1 that is now split into
two parts, the data fork in Test/image1 and the resource fork in
Test/.rsrc/image1 ?
(Note that naming a directory starting with a dot is a dumb thing, as
that makes invisible per UNIX conventions)
If the resource data is not lost, just separated, it's easy to re-merge:
cp /Volumes/Test/.rsrc/image1 /Volumes/Test/image1/..namedfork/rsrc
Do this in a "do shell script" with your filenames substituted and
that's your answer.
If the .rsrc file is in the resource fork (not the data fork), make it:
cp /Volumes/Test/.rsrc/image1/..namedfork/rsrc
/Volumes/Test/image1/..namedfork/rsrc
If the files in the .rsrc directory are empty, gone, kaput, then
there's no getting them back. Data loss is data loss.
Chris
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden