Re: Zip and keep folder structure
Re: Zip and keep folder structure
- Subject: Re: Zip and keep folder structure
- From: Rosemary Cantrell <email@hidden>
- Date: Tue, 8 Dec 2009 13:49:35 -0600
OK that works much better, but now when I unstuff it starts with the
user folder / username folder / desktop folder / folderIwant folder
with contents correct. The first 3 are not needed and might cause
confusion.
I'm thinking I need to find out the ins and outs of the do shell
script "zip -r" better.
Tell me this, is the do shell script doing the same thing as when I
right click and send to archive? Would I be smarter to approach this
entirely different? Leave my script that works for the PDFs alone and
try to create a separate script to do the zipping of a folder with
it's content hierarchy intact? What if I used the Automator dealie
would that work better?
Your thoughts?
Rosie
On Tue, Dec 8, 2009 at 12:07 PM, Mark J. Reed <email@hidden> wrote:
> Take off the -j option. The -j is telling it to junk the paths.
>
> On Tuesday, December 8, 2009, Rosemary Cantrell
> <email@hidden> wrote:
>> Dennis,
>>
>> I tried taking out the references to the path but I then I was getting
>> error of "nothing to do". Like it wouldn't do the zipping? Can you
>> give me more explanation of how to go about junking the paths... (I
>> tried to comment them out, I tried to delete all references to with no
>> success). I'm sure it's just that I don't grasp it exactly.
>>
>> Thank you for your help.
>> Rosie
>>
>> On Mon, Dec 7, 2009 at 8:38 PM, Dennis Cox <email@hidden> wrote:
>>> -----Original Message-----
>>> From: applescript-users-bounces+dcox=email@hidden on
>>> behalf of Rosemary Cantrell
>>> Sent: Mon 12/7/2009 11:42 AM
>>> To: AS users
>>> Subject: Zip and keep folder structure
>>>
>>> do shell script "zip -r -j " & zipFile & " " & itemPath
>>>
>>> From the zip man page:
>>>
>>> -j
>>> --junk-paths
>>> Store just the name of a saved file (junk the path), and do
>>> not
>>> store directory names. By default, zip will store the full
>>> path
>>> (relative to the current directory).
>>>
>>>
>> _______________________________________________
>> 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
>>
>
> --
> Mark J. Reed <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