Re: do shell script "command not found"
Re: do shell script "command not found"
- Subject: Re: do shell script "command not found"
- From: Emmanuel LEVY <email@hidden>
- Date: Mon, 21 Sep 2009 13:31:11 +0200
My 0.02€ on that:
I recently created (on 10.5) approximately 30.000 files in one folder,
with 3 folder levels (like in: MyFolder/A/S/U/ASUsers.txt). [1]
I tried to use Finder to zip the folder: it would zip only the oldest
files. As I retried one hour later, the zip would contain more and
more files, but even 24 h later the zip was still not able to gather
all the files.
Finally I used do shell script "zip" (pseudo-code: you really need "cd
blah"), and it worked immediately like a charm and at the speed of "a
greased lightning".
Emmanuel
[1] For you all French football fans, that's the site: http://annuaire.quomodo.com
On Sep 21, 2009, at 11:40 AM, Philip Aker wrote:
The zip format most familiar to Mac OS X users is the type created
by the Finder (right-click on a file or folder and note the Compress
"..." menu item). To emulate what the Finder does when creating
archives, see <x-man-page://ditto> in the EXAMPLES section. If you
are concerned with preserving features such as resource forks (for
custom icons e.g.), parent folder, and extended attributes, ditto is
the tool of choice. If you are not comfortable with shell scripting,
you can use AppleScript GUI scripting to invoke the "Compress …"
menu item and bypass shell scripting entirely.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden