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

Zip Multiple File Headaches


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

Hello list.
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




OS X 10.4.9

Thanks, as I really need to get this to work.
Rick
_______________________________________________
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: Doug McNutt <email@hidden>
  • Prev by Date: Re: Changing ownership of a folder and all contents
  • Next by Date: Re: Zip Multiple File Headaches
  • Previous by thread: Re: Q: FireFox Close Window?
  • Next by thread: Re: Zip Multiple File Headaches
  • Index(es):
    • Date
    • Thread