Re: Compress contents of folder using parent folder as zip name
Re: Compress contents of folder using parent folder as zip name
- Subject: Re: Compress contents of folder using parent folder as zip name
- From: James Yanchak via AppleScript-Users <email@hidden>
- Date: Sat, 18 Sep 2021 09:30:24 -0400
The zipFile value is the full path, this is why you are getting all those
folders. In the shell command, change directory to the folder just before the
zip command and use relative locations like this:
do shell script "cd " & theFolder & "; zip -r " & fileName & ".zip " &
fileName
> On Sep 17, 2021, at 21:37, Jenni via AppleScript-Users
> <email@hidden> wrote:
>
> Forgot to mention that I’m running 10.15.7.
>
> Also, adding -j to the zip command errors out because there are
> multiple files with the same name in the directories I want to compress.
>
> Marc
> _______________________________________________
> 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
_______________________________________________
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