Solved

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

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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

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…
Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
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.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

706 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

15 Experts available now in Live!

Get 1:1 Help Now