image
image

Go Back   macosx.com > Mac Help Forums > Unix & X11

View Poll Results: What to do with .DS_Store?
Kill!! Kill!! Kill!! (it should be noted the problem is only really on "non" OS X systems - where they are really, really annoying (to the point of making OS X useless)) 42 62.69%
They're not that bad. 11 16.42%
What's a .DS_Store? 9 13.43%
I quite like the little critters. 3 4.48%
Stop picking on Apple, they work hard and give us good software - Why does everyone nitpick? 2 2.99%
Voters: 67. You may not vote on this poll

Reply
 
Thread Tools
  #1  
Old October 23rd, 2002, 11:41 PM
Registered User
 
Join Date: Jan 2002
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
aqsalter is on a distinguished road
Hacking Darwin to remove .DS_Store

It might not seem like a big deal, but until I can use OS X without creating .DS_Store and other "." files in external directories I'm not going to use OS X at work. (Full-stop. I'm not going to create more work/hassle for my work collegues - they are already a little suspicious of Macs and then every network directory I touch creates "extra" useless files)

I'm wondering if anybody has heard of a hack to remove this (it could even remove it from the entire system, or I could disable it while I'm at work). I'm sure there is a way - I was even thinking about Unsanity APE which allows you to recode Cocoa API calls... Or hacking the source of Darwin (if that is where it resides)...

Let's kill this bug so we and many other people (link) can get on with using an (almost) otherwise perfect system...

Adam Q Salter
Reply With Quote
  #2  
Old October 24th, 2002, 07:24 AM
Registered User
 
Join Date: Oct 2002
Posts: 27
Thanks: 0
Thanked 0 Times in 0 Posts
jwalk76 is on a distinguished road
amen brother. i write code on my mac and then place it on my slackware server via samba. i'm getting really sick of having to clean out all of these files. other than .DS_Store, i also get a ._* equivalent of any file that i drag over (a samba issue, i believe), so in reality, transferring 20 files from my Mac creates 41 on the slackware box. i've been meaning to write a perl script to clean out the directories on command, but i never think of it when i have the time.
Reply With Quote
  #3  
Old October 24th, 2002, 10:53 AM
scruffy's Avatar
Notorious Olive Counter
 
Join Date: Dec 2000
Location: Soviet Canuckistan
Posts: 1,726
Thanks: 0
Thanked 0 Times in 0 Posts
scruffy is on a distinguished road
I suspect it's the Finder that's doing this. In my ~/src directory, where the finder has never looked, there is no .DS_Store. My Desktop has both .DS_Store and .localized, neither of which I put there.
__________________

What is the robbing of a bank compared to the founding of a bank?
-- Bertold Brecht
Reply With Quote
  #4  
Old October 24th, 2002, 12:28 PM
michaelsanford's Avatar
Psycholinguist
 
Join Date: Oct 2002
Location: Ottawa/Montréal
Posts: 2,174
Thanks: 0
Thanked 0 Times in 0 Posts
michaelsanford is on a distinguished road
I've been told that the ._* files is Windows' way of expressing the mac resource fork, which is why they appear. It's not Samba doing that, because I had a flash USB drive that I used with OS X and XP and I had those stupid ._* files everywhere too. It is a big pain, but I can't say whether it's Darwin or the Finder that does that, or some other middle-layer of the OS I don't even know about...
__________________
michaelsanford.comBlogTwitterTumblrLinkedIn
• iMac Aluminum 24" |
MacOS X 10.5-current | 3.06 GHz Intel Core Duo | 4 GB RAM | 1 TB HDD
• iBook G4 1.42 GHz | MacOS X 10.5-current | 1 GB RAM, 100 GB HDD
• AMD Athlon64 3500+ | Slackware 12 (2.6.21.5-smp) | 2 GB RAM, 2•120 GB RAID 1, 2•500 GB RAID 0
Reply With Quote
  #5  
Old October 24th, 2002, 12:52 PM
Registered User
 
Join Date: Oct 2002
Posts: 27
Thanks: 0
Thanked 0 Times in 0 Posts
jwalk76 is on a distinguished road
michaelsanford,

i am proud to say that i have never owned a machine with Micro$oft Window$. these ._* files appear on my Slackware Linux box when i transfer files via Samba. so, i guess it is a Mac-based problem but not specifically Samba or Window$ related. i guess i need to get cracking on my afore-mentioned cron/perl script to automate removal of these little annoyances...
Reply With Quote
  #6  
Old October 24th, 2002, 12:55 PM
Tigger's Avatar
Bring mich zum Licht!
 
Join Date: Nov 2000
Location: Germany
Posts: 395
Thanks: 0
Thanked 0 Times in 0 Posts
Tigger is on a distinguished road
Quote:
Originally posted by michaelsanford
I've been told that the ._* files is Windows' way of expressing the mac resource fork, which is why they appear.
As far as I know this is the way Mac OS X saves the Resource fork on File systems other than HFS/HFS+.

If you put files on a WebDAV server, it also saves these ._* files.

If you don't show invisible files on Windows, you won't see all these files, because at least Apple thought about hiding these little things. .DS_Store was visible till Mac OS 10.x, don't know which revision it was, but at some revision they hid it. This also has to be the revision that started encoding the resource fork as ._*
__________________
Blau macht gluecklich

Try my little Flash Bomberman Game
Reply With Quote
  #7  
Old October 24th, 2002, 01:02 PM
michaelsanford's Avatar
Psycholinguist
 
Join Date: Oct 2002
Location: Ottawa/Montréal
Posts: 2,174
Thanks: 0
Thanked 0 Times in 0 Posts
michaelsanford is on a distinguished road
Licht für dich?
__________________
michaelsanford.comBlogTwitterTumblrLinkedIn
• iMac Aluminum 24" |
MacOS X 10.5-current | 3.06 GHz Intel Core Duo | 4 GB RAM | 1 TB HDD
• iBook G4 1.42 GHz | MacOS X 10.5-current | 1 GB RAM, 100 GB HDD
• AMD Athlon64 3500+ | Slackware 12 (2.6.21.5-smp) | 2 GB RAM, 2•120 GB RAID 1, 2•500 GB RAID 0
Reply With Quote
  #8  
Old October 24th, 2002, 01:03 PM
michaelsanford's Avatar
Psycholinguist
 
Join Date: Oct 2002
Location: Ottawa/Montréal
Posts: 2,174
Thanks: 0
Thanked 0 Times in 0 Posts
michaelsanford is on a distinguished road
But on a serious note, the problem isn't so much that they are visible, it's that it clutters up a folder. So if you try to copy the folder, it copies these things too.

Hey actually it would be a simple matter to write an applescript to remove them...if you can mount windows volumes locally.
__________________
michaelsanford.comBlogTwitterTumblrLinkedIn
• iMac Aluminum 24" |
MacOS X 10.5-current | 3.06 GHz Intel Core Duo | 4 GB RAM | 1 TB HDD
• iBook G4 1.42 GHz | MacOS X 10.5-current | 1 GB RAM, 100 GB HDD
• AMD Athlon64 3500+ | Slackware 12 (2.6.21.5-smp) | 2 GB RAM, 2•120 GB RAID 1, 2•500 GB RAID 0
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Setting up Darwin OS will103 Unix & X11 0 February 28th, 2003 07:56 PM
Installed Darwin and have 2 questions Jeffo Unix & X11 1 January 2nd, 2003 05:03 PM
Darwin i86 help VerzilliD Unix & X11 0 August 16th, 2002 11:39 AM
Yeah, Darwin! RacerX Unix & X11 0 April 28th, 2002 11:15 PM
Sound drivers in Darwin 1.0 bwooden Mac OS X System & Mac Software 3 March 9th, 2001 02:20 PM


All times are GMT -5. The time now is 05:06 AM.


Mac Support® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2000-2008 DigitalCrowd, Inc.