Zip Multiple File Headaches
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