• 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 Multiple File Headaches
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Zip Multiple File Headaches


  • Subject: Re: Zip Multiple File Headaches
  • From: Rick Dwyer <email@hidden>
  • Date: Thu, 16 Aug 2007 13:44:38 -0400


On Aug 16, 2007, at 1:28 PM, Doug McNutt wrote:

At 13:00 -0400 8/16/07, Rick Dwyer wrote:
I had a simple applescript using the shell script zip function to zip a file for me.
It worked fine. However, I have modified it to zip multiple files, which it does, but it places them in a folder. For my application, when the zip file is opened, it needs to return just the three files within it, and not have them nested within a folder. Is there a way this can be done?
Here is my code:


tell application "Finder"
set zipfolder to ("/TempUploads/mynewzip.zip")
set filelist to every text item in the folder "Macintosh HD:TempUploads"
set ToBeZippedFile to ("/TempUploads/" & filelist)
do shell script "zip -r -j " & zipfolder & " " & ToBeZippedFile & ""
end tell

Have a look at the gzip and gunzip man pages. On my Mac - Panther - there isn't even a man page for zip though it does exist in /usr/bin/.

These utilities I believe add different extensions other than just .zip. For my solution, the zip file is uploaded to an ftp server and in must be named myname.zip. When it's unzipped automatically, it must unzip to the three files enclosed.
So unfortunately, I don't think those will work.
Rick









--

--> From the U S of A, the only socialist country that refuses to admit it. <--
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (applescript- email@hidden)
Help/Unsubscribe/Update your Subscription:
40quick-link.com
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
  • Follow-Ups:
    • Re: Zip Multiple File Headaches
      • From: "Gary (Lists)" <email@hidden>
References: 
 >Zip Multiple File Headaches (From: Rick Dwyer <email@hidden>)
 >Re: Zip Multiple File Headaches (From: Doug McNutt <email@hidden>)

  • Prev by Date: Re: Zip Multiple File Headaches
  • Next by Date: Re: Changing ownership of a folder and all contents
  • Previous by thread: Re: Zip Multiple File Headaches
  • Next by thread: Re: Zip Multiple File Headaches
  • Index(es):
    • Date
    • Thread