Re: Problem with dot_underscore files
Re: Problem with dot_underscore files
- Subject: Re: Problem with dot_underscore files
- From: Gnarlodious <email@hidden>
- Date: Fri, 14 Oct 2005 18:32:53 -0600
- Thread-topic: Problem with dot_underscore files
Title: Re: Problem with dot_underscore files
Entity John Jones spoke thus:
> I've got a script that moves text files to a share on a Windoze
> machine. When it does it creates a "._" (dot underscore) file for each of
> them. Obviously this is an OS X thing but it's messing up the process on the
> Windoze side. Is there anyway I can write them without the accompanying
> "invisible" file. I tried using do shell script with mv but got the same
> thing.
Easier to delete them after the files are copied:
set someFolder to quoted form of (POSIX path of (choose folder) as string)
Do shell script "find -d " & someFolder & " -name \"\\.DS_Store\" -exec rm -f {} \\; ;find -d " & someFolder & " -name \"\\._*\" -exec rm -f {} \\;;find -d " & someFolder & " -name \"\\.FBCLockFolder\" -exec rm -fR {} \\;;find -d " & someFolder & " -name \"\\.FBCIndex\" -exec rm -f {} \\;")
This script removes all Mac specific files from the folder you select. There is probably a shorter command for this, if anyone knows how to wildcard the target files post it here.
You can also use rsync with the -a switch to turn off copying Mac resource files under 10.4.
-- Gnarlie's Applescript page:
http://Gnarlodious.com/Apple/AppleScript/
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden