Solved

How to copy MAC file (with both resource and data forks) in Java ?

Posted on 2003-12-04
5
214 Views
Last Modified: 2013-12-26
Hi,

I would like to find out how to copy MAC files that have both resource and data forks in Java ?
- Have tried using JConfig but doesn't work well - keeps hanging.
- Have also tried executing an applescript from within the Java codes, it works but performance is quite bad.

Thank you in advance.

Rgds,
Sze Ling
0
Comment
Question by:szelingon
  • 2
5 Comments
 
LVL 14

Expert Comment

by:Tommy Braas
ID: 9899463
Are you trying to do this on Mac OS X, or on an earlier version of Mac OS? Does it have to work on both versions?
0
 

Author Comment

by:szelingon
ID: 9900831
I am doing this on MAC OS X.

BTW, I found another workaround. Using Java's Runtime.exec to run the "ditto" command. It's working thus far with one limitation though. Src file and destination file supplied to the ditto command cannot exceed more than 50 chars.
0
 
LVL 14

Expert Comment

by:Tommy Braas
ID: 9900972
You can also use the CpMac command available as a part of the developer tools distribution. I am assuming that you're looking to distribute this app to machines that don't necessarily have the dev tools installed?

Good that you found a solution!
0
 

Accepted Solution

by:
CetusMOD earned 0 total points
ID: 10748698
PAQed, with points refunded (125)

CetusMOD
Community Support Moderator
0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question