[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

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

Posted on 2003-12-04
5
Medium Priority
?
233 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
In this post we will learn different types of Android Layout and some basics of an Android App.
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.
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
Suggested Courses

649 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