• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Problem with dot_underscore files
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem with dot_underscore files


  • Subject: Re: Problem with dot_underscore files
  • From: "John Jones" <email@hidden>
  • Date: Mon, 17 Oct 2005 11:27:41 -0400

Thanks for that great shell script, but unfortunately, once they're there, the problem has already happened.  The destination folder is a "watched" folder that receives publishing jobs for a automated CDR writer.  It's very quick an basically reads the files as soon as the appear.  By the time the "dot" files would be deleted, they'd have already created an error.
 
Thanks,
 
John

>>>Gnarlodious <email@hidden> 10/14 8:32 pm >>>
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

  • Follow-Ups:
    • Re: Problem with dot_underscore files
      • From: Gnarlodious <email@hidden>
  • Prev by Date: URL Access scripting in Tiger launches Classic
  • Next by Date: FM to Word
  • Previous by thread: Re: Problem with dot_underscore files
  • Next by thread: Re: Problem with dot_underscore files
  • Index(es):
    • Date
    • Thread