Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Quickly remove ._ files from Windows' shares' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Quickly remove ._ files from Windows' shares
Authored by: mattnevels on Jul 30, '03 11:03:55AM

I wrote an applescript droplet to do this, and it seems to be working great, on all but files that have spaces in their filenames, can someone with a better background in unix shed some light on how I might fix this? Thanks,

Matt

on open fileName
set fullFileName to POSIX path of fileName
do shell script "find " & fullFileName & " -name '._*' | xargs rm"
do shell script "find " & fullFileName & " -name '.DS_Store' | xargs rm"
end tell
display dialog "._* and .DS_Store files in the " & fileName & " path have been removed."
quit
end open

---



[ Reply to This | # ]