• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Zip and keep folder structure
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Zip and keep folder structure
      • From: "Mark J. Reed" <email@hidden>
    • Re: Zip and keep folder structure
      • From: Doug McNutt <email@hidden>
References: 
 >Zip and keep folder structure (From: Rosemary Cantrell <email@hidden>)
 >RE: Zip and keep folder structure (From: "Dennis Cox" <email@hidden>)
 >Re: Zip and keep folder structure (From: Rosemary Cantrell <email@hidden>)
 >Re: Zip and keep folder structure (From: "Mark J. Reed" <email@hidden>)

  • Prev by Date: Re: Is it possible to multi-thread do shell script?
  • Next by Date: Re: Zip and keep folder structure
  • Previous by thread: Re: Zip and keep folder structure
  • Next by thread: Re: Zip and keep folder structure
  • Index(es):
    • Date
    • Thread