Re: Flattening Mac resource files?
Re: Flattening Mac resource files?
- Subject: Re: Flattening Mac resource files?
- From: Tito Ciuro <email@hidden>
- Date: Thu, 27 May 2004 09:04:28 -0400
Hello,
I like this approach, but there's something missing, I think. Assuming
I have a file named "myFile" with 2 forks (resource + data) I need to
do the following steps:
1) Split the two forks and create two files (something like myFile.r
and myFile.d)
2) These two files can now be send over the network to a different
system
Later, I need to join the two files again:
3) Process 'myFile.r' and convert it to 'myFile,rsrc'
4) Join 'myFile.rsrc' + 'myFile.d'
Comments:
- Following your steps I obtain 'myFile.r', but not 'myFile.d' via DeRez
- With Rez, I convert 'myFile.r' to 'myFile.rsrc'
Questions:
- Should I assume that if I send 'myFile' to a different system, its
resource fork will be lost? If this is the case then I don't need to
create the 'myFile.d' file manually.
- How do I merge back 'myFile.rsrc' and 'myFile.d' and obtain the
original 'myFile'?
Thanks a lot,
-- Tito
On 27 may 2004, at 2:09, Robert Cerny wrote:
Hi,
you can use DeRez/Rez combination.
at first, DeRez the resource file to .r using DeRez test.rsrc >
test.rsrc.r
Next, you need to convert to datafork resource:
Rez -useDF -a test.rsrc.r -o test.rsrc
HTH
Robert
On 27.5.2004, at 5:18, Tito Ciuro wrote:
Hello,
Some Mac files contain a resource fork. The question I have is: how
can I "flatten" the resource fork (resource fork-within-data fork) so
that I can move the file to other systems? Are there any facilities
in Mac OS X that will allow me to do this? I would also need to do
the opposite when reconstructing the file again on the Mac side.
Any ideas?
Thanks!
-- Tito
_______________________________________________
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.
_______________________________________________
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.