Re: Make a file visible
Re: Make a file visible
- Subject: Re: Make a file visible
- From: Doug McNutt <email@hidden>
- Date: Sun, 15 Dec 2002 14:05:30 -0700
At 20:05 +0100 12/15/02, Thomas wrote:
>
In fact I was looking for a script that will trash under OS X all the nasty (ressources ?) files "._<name of the file>" which appears when you copy files on(to) a DOS disk from OS X.
AhhHa. The UNIX command cp ( for copy) has a problem on the Mac which might be useful to you. It ignores the resource fork. If you do a
cp sourcefile /Volumes/theMountedDisk/
cp will recognize that the destination is a "folder" and will copy the source file there with its original name but it will ignore the resource fork. /Developer/Tools/CpMac it the tool that is intended to "correct" that problem. It behaves as the finder does when you drag and drop a file.
Take my stuff and set up the do script command so that it does a simple UNIX /bin/cp and you should have what you want. You'll have to hard code the destination folder/disk. This is not really AS. Ak off list if you need some help.
Something else you might look at, if you're networked, is FTP. That protocol ignores resource forks unless special precautions are taken.
--
--> Life begins at ovulation. Ladies should endeavor to get every young life fertilized. <--
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.