|
|
#1 |
|
Registered User
Join Date: Nov 2012
Posts: 1
|
Exclude .DS_Store from Archive Utility compression
Is there a way to change the default behaviour of the built in archive utility so when I select a folder in the Finder and right-click -> Compress "folder" it excludes .DS_Store in the resulting zip archive?
I'm using OS 10.8.2 if that makes a difference. |
|
|
|
|
|
#2 |
|
Hall of Famer
Join Date: Mar 2002
Posts: 3,870
|
Not that I know of. There are applescripts that invoke the zip command with options that will surpress that. That could be saved as an app or put in the services menu.
|
|
|
|
|
|
#3 |
|
Hall of Famer
Join Date: Oct 2002
Location: Halifax, Canada
Posts: 4,946
|
In an AppleScript you delete a hidden file by calling it an "item", not a file.
__________________
17" MBP, OS X 10.8.3; 27" iMac, OS X 10.8.3 |
|
|
|
|
|
#4 |
|
Moderator
Join Date: Jun 2003
Location: Boulder, CO USA
Posts: 19,551
|
creativetags, is using the command-line version of zip (instead of an application that runs in the GUI) an option for you?
Trevor
__________________
How to ask questions the smart way |
|
|
|
|
|
#5 | |||||||||||||||||||||||
|
Hall of Famer
Join Date: Mar 2002
Posts: 3,870
|
In the applescript app I have, the zip command does the excluding or deleting. Code:
do shell script ¬
("cd " & itemPath & "; zip -r " & zipFile & " . -x '*.DS_Store'")
|
|||||||||||||||||||||||
|
|
|
|
|
#6 |
|
Prospect
Join Date: Oct 2004
Posts: 8
|
It would be great to get a full copy of an AppleScript that does this, and also know how to get it in the Services menu.
There is a small App that does create archives in this manner called "CleanArchiver". You can just drag and drop a file or folder onto it and get that kind of archive we are talking about. But it would be easier if this functionality could somehow be added to the Services menu or incorporated into an AppleScript. |
|
|
|
![]() |
| Tags |
| archive utility, os x, zip |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|