Where is the macosx folder
Show 3 more comments. When I had this problem I've done it from command line: zip file. Koray Tugay This lacks explanation. Now if we add this a an Automator service we have ourselves a productivity beast here. Great solution. Inside the folder you want to be compressed, in terminal: zip -r -X Archive. This does not work as you think it does: -X does not exclude. Try it on a directory containing a dot-file, and you'll see it gets included. Doing zip -r -X Archive.
Rockallite: you are correct this will only work when you zip the folders, tree or files in the folder you are in. Show 1 more comment. This command did it for me: zip -r Target. If the above doesn't work for whatever reason, try this instead: zip -r Target.
Adil Hussain Adil Hussain Your first code snippet obviously doesn't work, because it doesn't name that as a folder to exclude. Wouldn't it be better to do the compressing using zip in the Automator Shell Script, rather than compress using Apple built-in, then remove unwanted files? Matt you can add the archive step in automator or use another shell command as well. Matt also, Apple built-in handles automatic file naming and name increment when file exists.
With shell script this part would be a lot of work. It throws an error if the. While the other answers are good, I like this one best because it can be used in a very Macish way. Jian Jason Jian Jason 1 1 silver badge 4 4 bronze badges. Heh, the only correct answer amongst a sea of garbage, is also the one with the least votes. It worked for me but I had to remove the quotes around and the dollar symbol before destFileName.
The unwanted folders can be also be deleted by the following way: zip -d filename. SabU SabU 5 5 silver badges 4 4 bronze badges. This only works for directories, not for a bunch of file inside a directory.
MichaelTrouw Yes, but you should not usually create an archive that contains multiple files at the top level in the first place. I agree to disagree because there are use cases where this is fine. For example, one in which the end user of a zipfile will never be a user. But a server. You can't. So you can use it like this: zip -d filename. So do this the result is the same: zip newzipname filename.
Xian Shu Xian Shu 6 6 silver badges 8 8 bronze badges. It has been modified. Thanks for reminding me — Xian Shu.
The automator workflow: Input: files or folders from any application. Step 1: Create Archive, the system builtin with default parameters.
Step 2: Run Shell command, with input as parameters. Copy command below. This is the best solution! Get access to thousands of hours of content and a supportive community. Start your free trial today. I'm just about to start my first front end development class projects, and I began to download my file after reading the information listed on the site about what to do. They look like both folders are nested differently, and I dont want to choose the wrong folder by mistake to submit.
Do I just delete the other? I can't seem to find any information pointing to a solution on the web. Connect with:. Notify of.
Inline Feedbacks. Tags theory test practice Apple apple bug article black screen of death bsod cache dps dps apps dps computing dps computing limited dps david dps drive Facebook firmware update google interactive theory test iPhone ITT kernel panic macbook macbook pro macbook pro mid model macbook pro mid model 15" mac os x lion mac os x superbug multiple kernel panics news os x Account Register. Log In Username Password Connect with:.
Subscribe to our Blog Join other subscribers. Would love your thoughts, please comment.
0コメント