Prevent .DS_Store Files From Re-appearing

I'm trying to upload a custom WordPress theme to:
- http://wordpress.org/themes/upload/
However it won't let me because of the hidden .DS_Store files inside it.
I've tried removing them with the Terminal command:
- find . -name '*.DS_Store' -type f -delete
However they seem to reappear for when I upload them? Is there a way I can prevent them from reappearing before I upload the file?

Did you have open Finder windows that regenerate them?
They are required by OSX as far as I know. When I SVN commit, I explicitely have to exclude them as well.
More info/solution in the rant at http://www.aorensoftware.com/blog/2011/12/24/death-to-ds_store/.

Similar Messages

  • Prevent .pdf files from automatically downloading in e-mail

    How do you prevent .pdf files from automatically downloading in an e-mail message with an Exchange account?

    Yes, that's a plausible explanation.
    Never having locked a Numbers document, I don't have first hand experience.
    I put my sensitive documents in an encoded disk image file. Less bother. But then, I'm not e-mailing sensitive documents or otherwise exposing them.
    Jerry

  • How to prevent a file from stripping?

    I'm building vacation for Arch64 but should be the same for 32bit. PKGBUILD looks like this:
    # $Id: PKGBUILD,v 1.1 2004/01/21 15:43:15 dale Exp $
    # Maintainer: dale <[email protected]>
    pkgname=vacation
    pkgver=1.2.6.1
    pkgrel=1
    pkgdesc="an automatic mail-answering program"
    depends=(gdbm)
    url="http://www.tosn.org/projects/vacation/"
    source=(http://www.tosn.org/projects/vacation/files/$pkgname-$pkgver.tar.gz vacation.patch)
    build() {
    cd $startdir/src/$pkgname
    mkdir -p $startdir/pkg/usr/{bin,man/man1}
    # keeps binary from building
    rm -rf vacation
    # fixing the Makefile - not only for arch64
    sed -i -e 's: -m486::; s:CFLAGS.*= (.*):CFLAGS += 1:' $startdir/src/$pkgname/Makefile
    sed -i -e "s:/usr/bin:$startdir/pkg/usr/bin:g" $startdir/src/$pkgname/Makefile
    mv vacation.man vacation.1
    make install
    These file have been created:
    [andyrtr@workstation64 vacation]$ ls -lRA pkg/
    pkg/:
    insgesamt 0
    drwxr-xr-x 4 andyrtr users 96 2006-01-28 09:32 usr
    pkg/usr:
    insgesamt 0
    drwxr-xr-x 2 andyrtr users 96 2006-01-28 09:32 bin
    drwxr-xr-x 3 andyrtr users 72 2006-01-28 09:32 man
    pkg/usr/bin:
    insgesamt 24
    -rwxr-xr-x 1 andyrtr users 16864 2006-01-28 09:32 vacation
    -rw------- 1 andyrtr users 470 2006-01-28 09:32 vaclook
    pkg/usr/man:
    insgesamt 0
    drwxr-xr-x 2 andyrtr users 48 2006-01-28 09:32 man1
    pkg/usr/man/man1:
    insgesamt 0
    [andyrtr@workstation64 vacation]$
    I get this error:
    ==> Starting build()...
    gcc -march=x86-64 -O2 -pipe  -Wall  -Xlinker -warn-common -D_PATH_VACATION="/var/abs/extra/system/vacation/pkg/usr/bin/vacation" -o vacation vacation.c -lgdbm
    install -s -m 755 vacation /var/abs/extra/system/vacation/pkg/usr/bin/vacation
    install -s -m 755 vaclook /var/abs/extra/system/vacation/pkg/usr/bin/vaclook
    strip: /var/abs/extra/system/vacation/pkg/usr/bin/vaclook: File format not recognized
    install: strip fehlgeschlagen
    make: *** [install] Fehler 1
    ==> ERROR: Build Failed.  Aborting...
    Krusader detects it as a Perl program. Any idea?
    AndyRTR

    Posted: Sat Jan 28, 2006 8:45 am    Post subject: How to prevent a file from stripping?
    I'm building vacation for Arch64 but should be the same for 32bit. PKGBUILD looks like this:
    Code:
    # $Id: PKGBUILD,v 1.1 2004/01/21 15:43:15 dale Exp $
    # Maintainer: dale <[email protected]>
    pkgname=vacation
    pkgver=1.2.6.1
    pkgrel=1
    pkgdesc="an automatic mail-answering program"
    depends=(gdbm)
    url="http://www.tosn.org/projects/vacation/"
    source=(http://www.tosn.org/projects/vacation/files/$pkgname-$pkgver.tar.gz vacation.patch)
    build() {
       cd $startdir/src/$pkgname
            mkdir -p $startdir/pkg/usr/{bin,man/man1}
            # keeps binary from building
            rm -rf vacation
       # fixing the Makefile - not only for arch64
       sed -i -e 's: -m486::; s:CFLAGS.*= (.*):CFLAGS += 1:' $startdir/src/$pkgname/Makefile
       sed -i -e "s:/usr/bin:$startdir/pkg/usr/bin:g" $startdir/src/$pkgname/Makefile
       mv vacation.man vacation.1
       make install
    These file have been created:
    Code:
    [andyrtr@workstation64 vacation]$ ls -lRA pkg/
    pkg/:
    insgesamt 0
    drwxr-xr-x  4 andyrtr users 96 2006-01-28 09:32 usr
    pkg/usr:
    insgesamt 0
    drwxr-xr-x  2 andyrtr users 96 2006-01-28 09:32 bin
    drwxr-xr-x  3 andyrtr users 72 2006-01-28 09:32 man
    pkg/usr/bin:
    insgesamt 24
    -rwxr-xr-x  1 andyrtr users 16864 2006-01-28 09:32 vacation
    -rw-------  1 andyrtr users   470 2006-01-28 09:32 vaclook
    pkg/usr/man:
    insgesamt 0
    drwxr-xr-x  2 andyrtr users 48 2006-01-28 09:32 man1
    pkg/usr/man/man1:
    insgesamt 0
    [andyrtr@workstation64 vacation]$
    I get this error:
    ==> Starting build()...
    gcc -march=x86-64 -O2 -pipe -Wall -Xlinker -warn-common -D_PATH_VACATION="/var/abs/extra/system/vacation/pkg/usr/bin/vacation" -o vacation vacation.c -lgdbm
    install -s -m 755 vacation /var/abs/extra/system/vacation/pkg/usr/bin/vacation
    install -s -m 755 vaclook /var/abs/extra/system/vacation/pkg/usr/bin/vaclook
    strip: /var/abs/extra/system/vacation/pkg/usr/bin/vaclook: File format not recognized
    install: strip fehlgeschlagen
    make: *** [install] Fehler 1
    ==> ERROR: Build Failed. Aborting...
    Looks like its tring to install to /var/abs/extra/system/vacation/pkg/usr/bin....... ????
    try make DESTDIR=$startdir/pkg/usr install

  • Prevent OST file from being excluded from workstation backups

    Is there a way to prevent OST files from being excluded from client/workstation backups in WS2012E?
    Thanks,
    Reg
    This is especially a problem for clients that have migrated to Office 365 exchange service as they have no local backup of emails that were deleted and think synced with Office 365.
    Reginald Hook

    OST files are not a local backup, they are a cache of what is in the mailbox.
    https://support.office.com/en-gb/article/Introduction-to-Outlook-Data-Files-pst-and-ost-6d4197ec-1304-4b81-a17d-66d4eef30b78#__toc290027730
    Robert Pearman SBS MVP
    itauthority.co.uk |
    Title(Required)
    Facebook |
    Twitter |
    Linked in |
    Google+

  • How do I prevent .DS_Store file creation on external usb drives?

    Hi.
    I can't connect my friends or colleagues external drives to my computer without my Mac creating dozens of ".DS_Store" files on them. It is very annoying.
    How can I prevent the Mac from creating these ".DS_Store" files?
    Thanks :o)

    Thanks for the response :o)
    If I suddenly would realize that my car is leaking oil, I would not buy a machine which automatically would fill up my oil tank to a acceptable level and also wipe up the oil after me. I would of course fix my car instead.
    I want to take the problem by the root. It should be possible to turn the feature off, so that the files never will be created (and without mounting the filesystem as read-only).
    Where can I turn off this feature?

  • How to prevent .DS_Store files in specificied folders

    Hello.  I want to stop creation of .DS_Store files in Desktop and Picture/hoge folders only. Also I would like to keep its settings of .DS_Store files in other folders.  When I googled the web I found so many pages explaining how to prevent .DS_Store in network folders, how to stop creation of .DS_Store files in all of the OSX system and usage of TotalFinder. Those are not what I am finding for. I want to stop creation of .DS_Store files in only particular folders.  I can use AppleScript or Terminal commands.  Thank you very much.

    would creating an empty one, then locking it achieve what you need ?
    + locking existing ones as needed.
    briefly checking here causes no obvious problems, Finder still alows changes, but reverted after relaunch.

  • Firefox is preventing some files from downloading off the internet

    Today I had to go to the Dell website to update some drivers for my laptop. Every time I downloaded the driver file from the site to the download manager and then clicked on it to run, I would get a message that there was no file to download. The tech from Dell then had me download Google Chrome and the downloads went smoothly without a hitch. Something in Firefox is preventing the Dell files from downloading. I need instruction on how to correct this problem. I am also wondering why when I go to download files using firefox I do not get an option to run the file instead of save it. II only get the option to save it and then have to click on it from the download manager to run it. I would like to change this as well if possible
    Thanks,
    Maria

    It is possible that you run into this maximum (the default value is 20):
    * http://kb.mozillazine.org/dom.popup_maximum
    To open the <i>about:config</i> page, type <b>about:config</b> in the location (address) bar and press the "<i>Enter</i>" key, just like you type the url of a website to open a website.<br />
    If you see a warning then you can confirm that you want to access that page.<br />
    *Use the Filter bar at to top of the about:config page to locate a preference more easily.
    *Preferences that have been modified show as bold(user set).
    *Preferences can be reset to the default or changed via the right-click context menu.

  • Strip resource forks and .DS_Store files from folder

    I'm transferring stuff from my Mac to a Windows machine using a FAT32 formatted keydrive, and want to eliminate the various dot files from folders before I copy them to the Windows box. I had tried using a Terminal command, which was tedious and at one point I mistyped something and managed to nuke one of the folders on the drive. After a search, I found this script at MacOSXHints:
    on run
    display dialog "Drag a removable disk icon here to have it cleaned and ejected"
    end run
    on open selectedItem
    -- get a text version of the volume name and remove the trailing colon :
    set volumeName to selectedItem as string
    set volumeName to characters 1 thru (the (length of volumeName) - 1) of volumeName as string
    if (list disks) contains volumeName then
    do shell script "find '/Volumes/" & volumeName & "' -name '.DS_Store' -exec rm '{}' \\;"
    do shell script "find '/Volumes/" & volumeName & "' -name '._*' -exec rm '{}' \\;"
    try
    do shell script "rm -rd '/Volumes/" & volumeName & "/.Trashes'"
    do shell script "rm -rd '/Volumes/" & volumeName & "/.TemporaryItems'"
    end try
    try
    tell application "Finder" to eject disk volumeName
    end try
    end if
    end open
    It worked great, but took a bit of time to run. I no longer need to clean the whole drive again, just specific folders I add to the drive now. Unfortunately I don't actually know how to write Applescript, I can just sometimes adapt an existing script to my needs, but this adaptation is beyond my meagre abilities. Last night I was copying a couple of folders to the drive, then using the Terminal "find execute remove" command to get rid of the dot files after the fact. I would like to have an Applescript droplet, so that I drop the folder onto it and the resource forks are stripped off and the .DS_Store files are removed before I copy the folder to the key drive.
    Any help appreciated!
    Francine
    Francine
    Schwieder

    Make a duplicate of the folder you want to transfer on your hard disk, and then run the following on the duplicate:
    on open droppedItems
    repeat with anItem in droppedItems
    if (folder of (info for anItem)) is false then
    display dialog (anItem as string) & " was not proccessed." & return & return & "Folders only please"
    else
    do shell script "find " & quoted form of POSIX path of anItem & " -name \".DS_Store\" -exec rm '{}' \\;"
    do shell script "find " & quoted form of POSIX path of anItem & " -name \"._*\" -exec rm '{}' \\;"
    do shell script "ditto --norsrc " & quoted form of POSIX path of anItem & " '/Volumes/volumename/pathname/'"
    end if
    end repeat
    end open
    The second do shell script line may not be needed in this variation.
    (21517)

  • Acrobat 8: How to prevent "Combine Files" from adding a header?

    Hi All.
    I am using Acrobat 8 (Win XP SP II) and am having a problem with the "Combine Files" feature. In the past, I've used this function to create hundreds of PDF files from thousands of individiual PDF's. It worked great. But now, suddenly, Acrobat increases the landscape page height from 8.5 to 8.8 inches, and then adds a header containing document name and date info.
    I don't want this header. I've looked all over Acrobat and Distiller and converter preferences but can't seem to find how to shut this feature off. Can anyone help me?
    To see an example, go to:
    http://www.garywed.com/AcroProblem.jpg
    Many Thanks!
    Gary Wedemayer

    I have multiple single-page PDF files lying in a folder; I hit Files-->Combine Files, select the relevant PDF files, and let it rip using any of the quality settings (low, medium, high- makes no difference).
    But I see nothing in the Combine Files dialog box that is relevant to this kind of header, so it must be hidden somewhere else. Can't find it for the life of me, tho!
    If I have to I'll revert back to Acrobat 6.0 or write a Javascript to combine the files for me, but I know I can do it straight up in Acrobat 8 'cos I've done it many times before.
    Thanx.
    ---Gary Wedemayer

  • Prevent SWF files from being decompiled back into FLA format

    Some programs such as Sothink SWF Decompiler may be used to
    decompile the SWF files back into FLA format. Even the ActionScirpt
    inside the SWF files can be decompiled as well! No one can even
    tell the difference between the original FLA file and the compiled
    FLA file! What can we do to prevent this from happening? I heard
    that we may protect the SWF files by using ActionScript Obfuscator.
    Is it true? How to do that? Please help, I must do something on
    it.

    Ng Jackie wrote:
    > Some programs such as Sothink SWF Decompiler may be used
    to decompile the SWF
    > files back into FLA format. Even the ActionScirpt inside
    the SWF file can be
    > decompiled as well! No one can even tell the difference
    between the original
    > FLA file and the compiled FLA file! How can we do to
    prevent this from
    > happening? I heard that we may protect SWF files by
    using ActionScript
    > Obfuscator. Is it true? How to do that?
    It's not true. SWF can't be protected.
    There are companies trying to sale products claiming they can
    protect SWF
    file, don't fall for that.
    In order to protect the file they jam the code and name of
    variables and functions.
    This however does not go w/o consequence. There is only how
    much you can mess the
    file up before the player will be unable to run it. Very
    risky games if you do that.
    One of the tools that was doing that, produced files which
    stop working with next
    player upgrade. From version 7 to 8. Than you just can't open
    it anymore.
    Secondly, as soon as such tool appear, the producers of
    decompilers provide antidotes.
    Upgrades with work around for the protection.
    Best Regards
    Urami
    !!!!!!! Merry Christmas !!!!!!!
    Happy New Year
    <urami>
    If you want to mail me - DO NOT LAUGH AT MY ADDRESS
    </urami>

  • How do I prevent offline files from syncing accross WAN

    I have multiple sites connected via smaller WAN links (1.5 meg).  I am trying to prevent any Offline Folder Syncing across the WAN. 
    When users travel to other sites there is an issue where their laptop wants to sync their MyDocs folder across the WAN.  Since the user has several Gig of Data at the remote site this could take all day and can consumes all of our bandwidth between
    the sites.  This doesn't happen unless the users have their MyDocs folder set to 'make available for Offline Use'. 
    The users MyDocs folder is automatically redirected to a network file server at the users main location.
    I have tried setting the Network Transparency to 64 ms (64) but that doesn't seem to help.  Normal latency between sites (based off of a ping) is 75-100 ms (unless under heavy load).
    Do you have any suggestions or recommendations?  I tried looking at the below technote but I couldn't seem to get a setting that made this issue go away.
    https://technet.microsoft.com/en-us/library/ff633429(v=ws.10).aspx#BKMK_EnablingTransparentCaching
    Any help you can offer will greatly be appreciated.
    Thank you

    Hi,
    The article you looking at is not for preventing the offline file sync. So what's your requirement? If you don't want the offline file sync, just disable the it in the sync center:
    1. Open the Control Panel, click on the Sync Center icon.
    2. In the left pane, click on the Manage offline files link.
    3. Click on the Disable offline files button.
    4. Click on OK and restart the computer(see screenshot below).
    If you want to sync the offline file, the guide you refer is the optimal solution for you. Since your file is too big. However, I suggest you sync it completely if you really need it when slow network or disconnection from the Server. It won't copy
    the whole file every time. It just sync the new version of the file when it checked the file has be changed.
    Karen Hu
    TechNet Community Support

  • Selectively Prevent Certain files from Syncing?

    I have some enormous mp3 files (~300MB) in my iTunes library (ambient background sounds that I use with my cans) And I would like to prevent these from auto syncing with my ipod.
    I am aware of two methods of doing this, however neither of these methods really do what I want.
    1. Have unchecked songs not sync to ipod.
    - This is what I typically use to selectively keep stuff on my 8GB nano, however the problem is that I am effectively no longer able to use these unchecked songs in iTunes like in playlists or shuffle mode, unless I specifically double-click on the file. Most importantly the files wont repeat even if that option is selected, and the file is manually double clicked.
    2. Manually Manage songs on ipod.
    - This is a real drag, considering that I only have 5~6 files that cause issue due to their colossal file size.
    Are there any other exclusion methods that I am unaware of?
    Thanks for the help.

    You could just put all the music you want synced to your ipod into a playlist and tell your ipod to just sync to that playlist.

  • Preventing iChat window from (re)appearing on buddy status change

    Hi All,
    I have my iChat set to remain online when the main application is closed, although an annoying side-effect of this is that when someone in my list comes online or their status changes – possibly from away or idle to active? – the iChat buddy list window pops up again.
    Does anyone know how I can prevent this?

    Hi,
    The Setting in the Preferences > General Section that refers to "When I quit iChat, Set my Status to Off line" stops incoming Off Line Messages when ticked.
    If Unticked then you are somewhat still logged in to the servers (depending on how many Buddy lists you have)
    It mainly effects the AIM Logins (AIM and Apple IDs).
    When some one send you an IM you should appear to be either Off line or Away to other Buddies.
    However if AIM's own Setting for Off line IMs is not On then you will get the IM.
    This is because iChatAgent in early version and IMAgent in iChat 6 and above "Listens" for these and will start up the app.
    In other Buddy lists (i.e Jabber) you can appear as still logged in which is why people IM you and the app will Start up on receiving the IM.
    It should not happen on your Buddies going Off line or coming On line or even changing their Status Messages.
    I would check the iChat menu > Preferences > Alerts for all the actions in the top drop down that refer to Buddies and check there is not AppleScript set to run.
    10:23 PM      Saturday; August 25, 2012
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"
      iMac 2.5Ghz 5i 2011 (Lion 10.7.2)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
    "Limit the Logs to the Bits above Binary Images."  No, Seriously

  • Preventing .jpeg files from being generated/saved

    I'm trying to capture a graph on the front panel into an .html file using the case structure in the attached .vi.  The case structure works but I keep getting  a jpeg file in the form of CT0327xxxxxxx.jpeg saved in the C:\vibration data directory each time a capture is performed.  How do I keep this image from either being generated or saved?  Thanks in advance.
    Message Edited by GSO on 09-12-2007 10:33 AM

    Sorry. Here it is.
    Message Edited by Dennis Knutson on 09-12-2007 11:18 AM
    Attachments:
    Append Image.PNG ‏46 KB

  • How do I prevent my files from duplicating in a new folder when I go to package?

    I don't believe this used to happen and it's driving me batty!! I save a working document in a job folder. Then when I go to collect the fonts and graphics by "packaging" it won't allow me to package in that first level it creates another folder inside the job folder with the same document, same name along with the fonts and graphics folders. Needless to say having mutiple files with the same name is REALLY DANGEROUS!! I am positive this is something new that is happening. Probably something easly to fix - I just can't find it!

    It has always been this way. You can create the package folder anywhere you like, and there is no real danger in the duplication unless you lose track of wheter you are working onthe packaged copy or the original, but that's up to you.

Maybe you are looking for

  • Creating a Sales Order using Web Dynpro

    Hi SDN,   I want to create a Sales Order using Web Dynpro application. For that i have used "Bapi_Salesorder_Createfromdat2" as a adaptive RFC model. Every thing is fine and i could able to create a sales order for a single line item. But my intensio

  • Can LightRoom use Camera Raw 4.5?

    I downloaded the ACR 4.5 plugin to the proper directory on my Mac, and Photoshop CS3 sees it correctly, and can open RAW (ORF) files from my Olympus E-520. However, it seems Adobe LightRoom 1.4.1 cannot open RAW (ORF) files from the E-520. Is this no

  • Error when installing Lr5

    I try to download and install Lr5 but the software cannot be installed properly. It said " Installation failed. Errors encountered during installation(7)". PS, AI and Acrobat were downloaded and installed smoothly. I tried to delete the patchfiles an

  • ER: JDev 10.1.3 needs a different method to verify expert mode view objects

    I am attempting to use ADF against Firebird 1.5. So far I am having great luck, especially in comparison to JDev 10.1.2. However, one thing that does not work is expert mode view objects. The problem is that JDev attempts to validate my query by crea

  • How can I turn off the Ipod 5g speaker so it just plays through the headphones?

    How can I turn off the Ipod 5g speaker so that it just plays through the headphones?