Hot answers tagged

28

This is what Adobe suggests: To avoid creating .DS_Store files, do not to use the OS X Finder to view folders. An alternative way to view folders is to use UNIX command line. Brilliant! ;)


24

You can show hidden files in Finder with a simple Terminal command: defaults write com.apple.finder AppleShowAllFiles -bool YES Then relaunch Finder by holding down the option key and right-clicking its dock icon. However, you can't hide the .DS_Store files without hiding the rest of the hidden files. You probably just have to live one way or the other.


22

You can't hide it, but you can make it transparent, then drag it to the bottom-left or bottom right corner. So only you will see a string ".DS_Store", and there will be no icon. Expert method: Copy a transparent image from your favorite img editor, select the icon of the file in the file info window, and paste the transparent image when the original icon is ...


17

Have your Mac user install BlueHarvest.


11

That file is a proprietary Mac/OSX system file that holds attributes/meta-data about the folder it resides in. These often appear in file shares that are accessed over the network by a Mac user; but that's not the only way you can get them. You may have gotten it in an archive (ie: a Zip file perhaps) you picked up someplace, which was originally created ...


10

just adding my solution to this as i didnt like any of the other options. I am web developer and I use /bin/zsh and oh-my-zsh .. either way you can add this to bash or sh.. Its simple, straight forward, and only 8 lines. I work a lot in the terminal though, so this is why this works best for my setup. in my .zshrc i added the following lines to make ...


10

Well, I know that there is utilities to do this, but I can't recall the name right now... But my Google-Foo, is working today... $ cd /Volumes/your\ target\ volume $ sudo touch .metadata_never_index This hidden file is recognized by both Leopard and Snow Leopard (Possibly Tiger too). But it will not stop a spotlight index that is currently being created....


7

There is this open source magic tool: asepsis. Sources are available on Github. Version 1.4 now works with OS X Mavericks. Update: Reported not working on El Capitan Warning: Asepsis is no longer under active development and supported under OS X 10.11 (El Capitan) and later.


6

Under Filezilla client, you can configure it to block some file extensions. In View >> Filename filters... you have to create a new filter. Go to Edit filter rules... and New. Look the existing filter called "Useless Explorer files" to adapt to Mac OSx files like .DS_Store From FileZilla oficial forums Regards


5

If you're going to share an writable, external disk with other OS X systems, you can run the following command from YOUR machine to prevent .DS_Store files from appearing touch /Volumes/your_volume_name/.metadata_never_index then protect the file by running chmod 444 /Volumes/your_volume_name/.metadata_never_index This existence of this hidden ...


5

On Linux file servers or NAS devices you can use the following: Option A. Samba configuration modification preventing both resource shares and .DS_Store files: veto files = /._*/.DS_Store/ delete veto files = yes (Configuration file located at /etc/samba/smb.conf or /etc/smb.conf depending on your distribution) Disadvantages: not all shares are ...


4

Not for any arbitrary USB flash drive you might insert (at least I don't think so). However, for a particular USB flash drive, check this out. Executive summary: Create two files, named .metadata_never_index and .Trash in the root directory of the USB flash drive. You'll have to manually remove any existing Spotlight or Trash folders that already exist.


3

If you use Cyberduck as a client, it will automatically skip those files (and several others) during transmission. This applies to both FTP and SFTP connections. If you're going command-line, you should use rsync instead of scp. With rsync you can add the option --exclude='.DS_Store' to skip those.


3

After many on/off years of searching for a solution, there are only a few alternatives, none of which quite match your original question; i.e. no solution exists to your specific question....yet One can specifically disable the .DS_store files from being created at all Leave Finder configured to not display hidden files Follow Adobe's nonsense and only ...


3

Use a program other than Finder such as MuCommander to browse your files. (works on Local drives too). In OS X lion, this method should allow default access to ~/Library without modifying settings or hitting ALT as well. I use MuCommander on Snow Leopard and Lion and noticed that neither HFS+ or ExtFat volumes end up littered with files with these files. ...


3

Have him look into the free and aptly-named Cleanup SMB Mess application. The developer says: This applescript droplet will clean up Windows shares mounted through the Mac OS X samba client, by removing all "._*" files, .DS_Store files and .Trashes folders on all the volumes and folders dragged on it." I've only used with thumb drives and MP3 players,...


3

Use Window's "Search Advanced Query Syntax", which basically lets you do stuff that Vista and XP advanced search used to let you (that Windows 7 hid). Read about it here. You can just search filename:.DS_Store to find all files with a file name that begins with ".DS_Store". Should work.


2

No. mdutil can turn off spotlight on network drives, but there's no way to stop it indexing removable drives (short of inserting the drive and then telling spotlight not to index that drive of course - but you're looking for something to stop it happening for all removable drives, always, not just the drives where you've manually turned it off) For trash, ...


2

Using Terminal works to hide .DS_store files. defaults write com.apple.finder AppleShowAllFiles -bool NO This hides the hidden files. Can change NO to YES if you wish to see them again.


2

Create an AppleScript/terminal service using Automator and save it to be accessible from the Finder>Services menu The Automator action will be a two step process. Step 1. Add an AppleScript. This script will toggle hidden files on or off (may not be properly formatted because I'm typing on my phone) if (do shell script "defaults read com.apple.finder ...


2

The short answer is that you have to hack the Finder binary at runtime to prevent it from creating them. There is no official Apple-blessed way of doing this without directly hacking binaries. "There's an app for that" nowadays. See this blog and this code which is quite awesome if you ask me :)


1

In PowerShell do this: cd MyFolder Get-ChildItem -recurse -filter .DS_STORE | Remove-Item -WhatIf When you specify -WhatIf, then PowerShell won't make any changes. It will instead tell you what it would have done. When you are happy with what it will do, then you can remove the -WhatIf. (It always pays to be careful when doing a recursive delete. You don'...


1

I found this blog post very useful: http://blog.hostilefork.com/trashes-fseventsd-and-spotlight-v100/ basically: To stop OS/X from doing Spotlight indexing, you need a file called .metadata_never_index in the root directory of the removable drive. To stop OS/X from making a .Trashes directory, you need to make your own file that isn't a directory ...


1

I have not used it personally, but have had BlueHarvest recommended to me for this... http://www.zeroonetwenty.com/blueharvest4/ From the site: The easiest way to keep your disks and file servers clean of Mac “dust”. BlueHarvest automatically removes DS_Store and ._ AppleDouble files (resource forks) from your USB keys, SD cards and file servers, ...


1

El Capitan user here. I like to keep an clean desktop; no icons or links at all. I also need to see hidden files in Finder. I "double clicked" the .DS_Store Icon and selected "Show View Options." In that window, I scaled the icon down to 16x16, and text size to 10. I set the Grid Size as small as possible as well. I then dragged the icon down to the ...


1

Definitely use the transparent icon. Then, just move it. Out of sight, out of mind.


1

I have changed the icon of DS_Store to transparent icon file (for the desktop). Look for transparent icon or png (http://osxdaily.com/2011/09/30/make-an-invisible-folder-hide-in-plain-sight/) and then convert it using: https://iconverticons.com/online/). Whilst I am not entirely happy with pretending it isn't there (#ostrichSolution) and would rather it ...


1

For the desktop annoying problem, my simple solution is hide the file behind the dock, you can change momentary the dock position and put the file where will remain invisible. Not a very technical solution, but effective.


1

I'm using Xtra Finder (http://www.trankynam.com/xtrafinder) to toogle fast between hidden files. You can create your own shortcut for toogling. No need to kill finder. This is a little bit more handy and easier to use instead of typing commands or executing scripts.



Only top voted, non community-wiki answers of a minimum length are eligible