Additional info regarding ZIP and FOLDERS
I use " TAR " because it allows files of the same name that reside in
different folders in the tree.
For web designers, this is valuable since linked support files are
critical and most are named the same and replicated within and across
web sites.
Examples are "style.css" "javascriptLib.js" "fileWriter.inc"
"login.js" "jquery.scrollTo.js"
This script creates one archive of many folders and files that may
have the same name.
------------------------
on zCompressRoot
--(Mac path version)
set the defaultfolder to "/Users/myaccount/path/to/folderParent/"
--this tells Rev the path and the shell command will use the same
put "_PagesForWebSite" into folderToCompress
put "WebPagesArch" into nameForZipArchive --the base string to
always use
put (the seconds & nameForZipArchive") into zipNameToCreate --the
stamped name
-- prefixing the seconds makes repeated zip's unique file names
put ("tar -c -z -f "& zipNameToCreate &".tar.gz " &
folderToCompress & "") into cmd
put shell(cmd) into status --make it drill down,
put status into msg -- this will list the errors, otherwise
success = empty
if status is not empty then
answer "There was a problem creating the archive. If at first
you don't succeed, tar tar again."
end if
end zCompressRoot
---------------------------
Example:
tar: _PagesForWebSite: Cannot stat: No such file or directory
tar: Error exit delayed from previous errors
Hope this helps.
Jim Ault
Las Vegas
On Aug 12, 2009, at 10:02 AM, Tereza Snyder wrote:
It's probably elementary for old hands on the list, but I've never
done it:
I need to zip up a folder that contains files and subfolders. Do I
need to use a shell command, or can a sequence of revzip commands do
the trick? What script commands are needed?
I'm working in MacOS, rev 3.5, creating (different) archives for Mac
& Win, from files on my hard drive.
grateful for guidance,
tereza
--
Tereza Snyder
Califex Software, Inc.
<www.califexsoftware.com>
_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution
Jim Ault
[email protected]
_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution