Solved

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

Posted on 2003-12-04
5
207 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Tab names are off by one 5 53
Define unique primary key 9 89
modThree challenge 4 79
JQuery serialize and unserialize 8 49
Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
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.
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

910 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now