How to compress or zip excluding '.DS_Store' files

I have to create a zip file in order to upload multiple files to a specific application. Unfortunately, it rejects the zip created on a Mac because it contains
hidden files. Any solutions besides going to Parallels everytime I need to do this. It would be much appreciated.

Found this:
http://bechster.com/zip-a-folder-on-mac-osx-without-the-pesky-ds_store-files/
I've not tried it myself.
The other way would be to make the invisible files visible and remove them first, then zip.

Similar Messages

  • How to permanently stop creation of .DS_Store files on desktop?

    Ever since attempting to use .ds_store on Terminal to find hidden iTunes files, the system will not stop creating .DS_Store files on the desktop. I've tried using the defaults write com.apple.desktopservices DSDontWriteNetworkStores true command, to no avail. I'm relatively new to using Terminal, so if someone could offer any tips, that would be good. The file creation is more of an annoyance than a real problem, but I want to know how to stop it, since there is no info on this in other places. Thanks! ~ Eva

    The DSDontWriteNetworkStores command only prevents creation on shared network drives.
    .DS_Store files are always created locally (unless using something like TotalFinder to prevent that)
    The reason you now see them on the Desktop is likely because during the process to track down iTunes files you enabled the option to "see" hidden files - issue the following command in Terminal to "undo" that:
    defaults write com.apple.finder AppleShowAllFiles false
    If you want the change to be immediate (rather than after logging out & back in or rebooting) then simply "restart" the Finder app, again in Terminal:
    killall Finder
    Johnny.

  • How do I create a new .DS_Store file for the Desktop?

    I have an account, in this case it is the System Administrator account (which I seldom use), where the Desktop icons all scrunch up to the right side of the screen. I can re-arrange them, but when I log out and sign back on, the icons are shifted back to the right side of the screen. I thought perhaps I had a corrupted .DS_Store file that needed to be removed. However, it turns out that I can find no .DS_Store file to remove for this account. Finder just doesn't seem to be able to create a new one. I'm not sure how or when the old one disappeared.
    Any suggestions how I can get the Finder or something else to create a new .DS_Store for the Desktop so that icons will stay put?

    I think I found an answer (not a solution) to my problem. Consulting with Apple Support, there is no way for the System Administrator's desktop to "remember" the positions of icons from one session to the next. They will always move to the right-hand side of the screen when you log back in. Apparently this is a change that occurred with OS 10.6.4. No reason by Apple given for the change, nor is it readily apparent to me why the Desktop or Finder in the System Admin account should work any differently than in any other account. Might simply be an oversight or a bug.
    If anybody has a fix, I would appreciate learning about it.

  • How to compress a bunch of .java files into a single .jar file?

    Hello everyone! I am working on a Chinese segmentation job. Someone offers very excellent
    such tool. When I copy his example, I find it imports
              import org.apache.lucene.analysis.Analyzer;
              import org.apache.lucene.analysis.Token;
              import org.apache.lucene.analysis.TokenStream;
              import org.mira.lucene.analysis.IK_CAnalyzer;I have downloaded IK_CAnalyzer.jar file which contains org.mira.lucene.analysis.IK_CAnalyzer class.
    I find that I need to download lucene, thus I went into the following website
    http://lucene.apache.org/#06+May+2008+-+Lucene+Java+2.3.2+availableand downloaded the lucene-2.3.2-src.tar.gz. Aftre unzip, I found all java source files in java directory (and in many other different subdirectories). Now it seems I need to compile all the src files and compress them into a single .jar file while keeping their original hierarchy unchanged
    I think I should use jar command and with some additional options.
    Can anyone show me how to do that?
    Many thanks!
    Edited by: aaron9979215 on Jul 12, 2008 5:17 AM

    Thanks for reply, I?ve read that tutorial before I post. Howevver, it do tells how to compress a jar file.
    The question I have is how to compile two .java file stored in different packages like
    rootPackage-->subPackage-->a.java
    rootPackage-->subPackage2-->b.java
    I want to compile a,java and b.java both and keep their hierarchy like rootPackage.subPackage.a unchanged. If I directly go into subPackage and compile a.java, I think the hierarchy is changed.
    What do you think about it?

  • How to compress a batch of pdf files in different sizes to a specific target (20 mb)

    Hi,
    How do I compress a batch of pdf files in different sizes (21-39 mb) to a specific target (20 mb)?
    Thanks:)

    By endless trial and error.

  • How to compress and decompress a pdf file in java

    I have a PDF file ,
    what i want to do is I need a lossless compression technique to compress and decompress that file,
    Please help me to do so,
    I am always worried about this topic

    Here is a simple program that does the compression bit.
    static void compressFile(String compressedFilePath, String filePathTobeCompressed)
              try
                   ZipOutputStream zipOutputStream = new ZipOutputStream(new FileOutputStream(compressedFilePath));
                   File file = new File(filePathTobeCompressed);
                   int iSize = (int) file.length();
                   byte[] readBuffer = new byte[iSize];
                   int bytesIn = 0;
                   FileInputStream fileInputStream = new FileInputStream(file);
                   ZipEntry zipEntry = new ZipEntry(file.getPath());
                   zipOutputStream.putNextEntry(zipEntry);
                   while((bytesIn = (fileInputStream.read(readBuffer))) != -1)
                        zipOutputStream.write(readBuffer, 0, bytesIn);
                   fileInputStream.close();
                   zipOutputStream.close();
              catch (FileNotFoundException e)
              catch (IOException e)
                   // TODO Auto-generated catch block
                   e.printStackTrace();
         }

  • Won't open any downloaded programs, i tried downloading winace but cant open that either. how do i open zipped or exe files?, won't open any downloaded programs, i tried downloading winace but cant open that either. how do i open zipped or exe files?

    I am a PC user - bought my 1st Mac today. Was trying to download a VLC player for my movies but i can't open files when i download them. I tried downloading winc=ace - but it came in an exe file as well and it just opens as a word file of computer language. I tried loking on the net - not much help - something about mounting a file - but there is no file mounter. Please help getting very frustrated. I guess i know how people who have never used a computer before feel like....
    Thanks for your help

    You need MacUnace from the Winace site
    VLC for MAc is here http://www.videolan.org/vlc/download-macosx.html

  • How do I compress a string with  java.util.zip - not a file ?

    How do I compress a string with java.util.zip?
    Is possible to compress something else except a file?

    Of course, compression works on bytes, not some higher level constructs like Strings or files.
    You can use the ZipOutputStream or DeflaterOutputStream for compression.
    And the javadoc for Deflater even has a code example of compressing a String.
    Edited by: Kayaman on May 22, 2011 5:04 PM

  • How do you use zip files?

    Hello all,
    I have always stayed away from ZIP files (as in doing it myself, to my own files), since my days in Windows, after all the countless corrupt ZIP files I received from others, that simply would not UNzip...
    But recently I've come across references to them again, and I realised I might be missing a trick or two....
    Any comments on the following would be appreciated:
    1.) What can I use them for?
    As in - could I ZIP my entire folder of holiday pictures - all 13GB's of them?
    Or is there some sort of size limit, where anything over, and things become problematic?
    Are some file types Zipped better than others?
    2.) How does it actually work?
    As in - what happens to my original files?
    Assume the holiday pics are Zipped - do the orginals get compressed, or can I select it so that copies are Zipped, as a kind of backup?
    3.) How safe is it?
    As in - assuming my hardware and software are all OK, nothing buggy etc. - if I create the ZIP file, pop it somewhere on a USB/External/the same laptop, and then Unzip it later, when I need them again - am I correct in assuming that the chances of the file being corrupted, are relatively slim?
    And coming back to those holiday pics - could the compression process result in a loss in picture quality/resolution, were I to then unzip the file? Or - assuming everything works as planned - will the quality of the pictures/file emerge exactly the same as they were prior to being compressed?
    I realise all of the above are ridiculously simple questions - but googling this doesn't really help, as most sites simply explain the how to, not the WHY...
    The WHY articles were probably all written 15 years ago already... I'm just very, very far behind....
    Thanks in advance!
    [Mid-2012 MBP 8GB Ram; OSX ML]

    Zipping an image file should have no effect on image quality, as the image data is not actually changed.
    Note that there's very little point in zipping a folder full of images, unless the images are not a compressed file type. You can't compress data that is already compressed - in fact, trying to do so often increases the file size - and JPEG images, for example, are already compressed.
    For the most part, you don't need to use zip at all. I absolutely DO NOT recommend storing your files and/or folders on the hard drive in compressed form as a space-saving measure. It doesn't save enough space to be worth the time needed to compress files large enough to warrant it on a modern drive. Accessing zipped files is a pain, too, since you basically have to decompress the whole thing in order to access a file inside a zip file.
    Zip becomes useful if you need to attach a large number of files to an e-mail message (zip the files, then attach the single zip file) or want to create an archive of multiple files to download from a web site through a single link. In other words, in situations where you need to transmit many files over the internet, especially where Windows users may be involved, zipping files can be either important or a convenience.

  • How to compress or shrink PDF files in OSX10.5.8

    How to compress or shrink PDF files in OSX10.5.8

    Lower the dpi of images IN the pdf they take up the most Space of the file and Will not be succesfully compressed by zip and the likes

  • How to compress large files

    Can anyone tell me whether os x has any good built in compression utilities? Or where to download some free ones?? I've got some rather large DV project folders that i want to compress onto one DVD and then delete them off my hard drive.
    Also how do you compress file to .mpkg? That's the extension of a compressed file from an apple utility that i found. once it was opened turned out to be 1.8 gig from 456k.

    OSX can create a .zip archive.
    Select the folder in the Finder, and goto the File menu and select Create Archive.
    But I'm not sure how high compression rate you can gain for your DV project.

  • How can I zip a music file?

    hello,
    I am very new with mac, I would like some help in how to compress a music file as well as what type of extention will I need?
    thank you

    Hi,
    Welcome to the Apple Discussions.
    Probably the easiest way would be to select the file in the Finder, then use the "Create Archive of (song file name)" menu item from the "File" menu. It'll compress it and add the file extension automatically.
    So, to compress a file you've selected in iTunes, you'd choose "Show Song File" from the iTunes "File" menu. A window will pop to the front with the song file highlighted. Now you're using the Finder application. Its "File" menu has the "Create Archive of (song file name)". Select that and you should get a zipped archive of your song.
    Be aware, though, that if you are compressing an MP3 or AAC compressed file, it's not likely to get very much smaller, if at all. In general, files that are already compressed don't compress very much more. And the more they're compressed in the first place, the less they'll compress using a second method.
    charlie

  • How to compress a pdf file without quality loss

    How to compress a pdf file without quality loss? Please help....

    With the way you worded the question, your only option is to zip (or equivalent) the PDF. There are options in terms of graphic compression (this is generally a loss of quality in reducing the pixels) and nonstorage of fonts (likely making the file unreadable to some). So there are techniques, but with a tradeoff. It all depends on what you mean by loss of quality.
    The other techniques that do not lose quality, but give up on some functionality are to remove links, bookmarks, and tags. The tags are often necessary only for converting a PDF back to another form and maintaining accessibility - important in some business situations. These are all tradeoffs that give something up.

  • How do you know how much compression a jpg file is compressed with ?

    Hi there !
    i d like to know how much compression a jpg file is compressed with ? 0 to 12

    i can't open this file JPEGQuality.jsx
    the extension file on the topic says .zip
    i have got an os 10.10 ???
    thanks
    2014-11-28 14:46 GMT+01:00 cuisinerouge . <[email protected]>:
    Thanks !
    i m gonna have a go right now
    >
    2014-11-28 14:43 GMT+01:00 c.pfaffenbichler <[email protected]>:
        how do you know how much compression a jpg file is compressed with ?
    >> created by c.pfaffenbichler
    >> <https://forums.adobe.com/people/c.pfaffenbichler> in *Photoshop General
    >> Discussion* - View the full discussion
    >> <https://forums.adobe.com/message/6969227#6969227>
    >>

  • How can I keep lion from generating .DS_Store files on windows network partitions, but not disable it for all network partitions?

    How can I keep lion from generating .DS_Store files on windows network partitions, but not disable it for all network partitions?  I am fimilar with changing the setting for all network partitions(defaults write com.apple.desktopservices DSDontWriteNetworkStores true), but that is undesirable when I connect my laptop to my home network. A preferable solution would be where I could control the writing of these files based on disk format (NTFS vs HFS+).

    Go to MacUpdate or CNET Downloads and search for ds_store. There are numerous utilities for preventing them from being transferred to Windows systems.

Maybe you are looking for

  • Audio goes out of sync when i open project on diff macs

    i have an iMovie project created on an iMac saved to an external. I go to open the project up on my macbook and the audio is out of sync. I go back to my iMac with the same project and it works just fine. I'm a bit confused because both macs use Mac

  • Creating Database independent Export

    Hello, Usually standard export available from SAP is platform independent, OS as well as Database. When we export any system using sapinst, it asks for the target database and only the directory with selected target data is filled with data. Whereas

  • Adobe Clip lost sync !

    Hi I deleted my videos from my camera roll in my i phone 6 by doing so I lost the link between the original video and the edited video within Adobe Clip. How would I re-sync my video so i don't loose all my edits I did in Adobe Clip app? Thanks

  • Several issues - are they related?

    I've been experiencing several issues with my new IMac, and I wonder if they are related. First, the Adobe Flash plug in for Safari has been quitting unexpectedly. Then, Safari would start closing on its own. Finally, IPhoto also would suddenly quit.

  • Brand new Mac Mini failing to start

    I got my Mac Mini 2 days ago (brand new direct from Apple, with Lion install) and everything worked fine until last night when I downloaded and attempted to install various Apple software updates (including a security update). I left the computer alo