• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Flattening Mac resource files?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Flattening Mac resource files?


  • Subject: Re: Flattening Mac resource files?
  • From: David Reed <email@hidden>
  • Date: Thu, 27 May 2004 10:37:11 -0400

Tito,

I would recommend you use MacBinary instead of trying to split/join the forks. It is established and widely supported, and IIRC also preserves Finder metadata. Also, you cannot rely on Rez and DeRez being present on any system, they are only installed as part of the developer tools bundle.

David.

On Thursday, May 27, 2004, at 09:04 US/Eastern, 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.
_______________________________________________
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.


References: 
 >Re: Flattening Mac resource files? (From: Tito Ciuro <email@hidden>)

  • Prev by Date: Re: Retaining NSInputStream working with NSStream
  • Next by Date: Re: Applet HighLevel Events and NSApplications
  • Previous by thread: Re: Flattening Mac resource files?
  • Next by thread: Re: Flattening Mac resource files?
  • Index(es):
    • Date
    • Thread