Re: Flattening Mac resource files?
Re: Flattening Mac resource files?
- Subject: Re: Flattening Mac resource files?
- From: Robert Cerny <email@hidden>
- Date: Thu, 27 May 2004 16:40:41 +0200
Hi,
I'm not sure I understand your problem exactly, but if your file has
both forks, and you transfer the file across the network, which doesn't
support resources, then they will be stripped. You don't have to
convert data fork's part because it will be transfered without problem.
In my idea, you will convert the resource fork part into a flat(data
file based) fork, include it into the original file, transfer it over
network, and on the second side split it using DeRez -useDF and
recreate the file.
The drawback of the solution is, that if you're transferring some
"readable" format like txt, tiff etc, it will become unreadable until
you remove the flat resources.
HTH
Robert
On 27.5.2004, at 15:04, Tito Ciuro wrote:
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.