Re: rev and zip files

2005-02-09 Thread Ben Fisher
There is a way to zip files or even folders without an external. I did this by 
shelling another zipping utility. To be even more sly about it, the zipping 
executable is "embedded" in the stack in a custom property.

It's on RevOnline. 
User Name: Benjam
Program: Windows ZipFolder

This program only works for windows. Also, it hasn't been tested that well. If 
it doesn't work please e-mail me at [EMAIL PROTECTED].

-Ben

P.S. Is it true that you can read from the standard input and output from a exe?
Is this the same  that c++ uses?

___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: rev and zip files

2005-02-09 Thread Stephen Barncard
I would think that Aladdin (makers of Stuffit) might have even 
written the spec. And Unstuffit seems to handle everything I throw at 
it, including zips. Also don't forget that Aladdin makes a PC version 
of Stuffit/Unstuffit.

sqb

I would expect that Stuffit is at least aware of archive in that format.
Martin Baxter

--

   Rome did not create a great empire by having meetings.
Rome created a great empire by killing all those who opposed it.

___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: rev and zip files

2005-02-09 Thread Martin Baxter
>Martin Baxter wrote:
>>>Richard Gaskin wrote:
>>>...  If you take the time
>>>to store the type and creator codes obtained from "the detailed files"
>>>on Mac you can even restore those when you write them out again --
>>>something the Zip format doesn't handle at all.
>>>
>> Well that's not entirely true Richard. The zip utilities for Mac that I've
>> used create a folder in the zip archive called "XtraStuf.mac".
>
>I must be old. :)  Apparently Mac extensions were added to the spec --
>from :
>
>   Third-party Mappings:
>
>  -ZipIt Macintosh Extra Field (long) (0x2605):
>
>   The following is the layout of the ZipIt extra block
>   for Macintosh. The local-header and central-header versions
>   are identical. This block must be present if the file is
>   stored MacBinary-encoded and it should not be used if the file
>   is not stored MacBinary-encoded.
>
>   Value SizeDescription
>   - ---
>   (Mac2)  0x2605Short   tag for this extra block type
>   TSize Short   total data size for this block
>   "ZPIT"beLong  extra-field signature
>   FnLen Bytelength of FileName
>   FileName  variablefull Macintosh filename
>   FileType  Byte[4] four-byte Mac file type string
>   Creator   Byte[4] four-byte Mac creator string
>

To be honest I had no idea that it was part of the official spec either,
I'm impressed.

>
>Which Mac Zip tools use those?
>
>And do any of the Win Zip tools allows you to define the values of those
>fields for moving files cross-platform?
>

Well presumably ZipIt uses them for one, Here are some links for it that
were posted here recently. I think ZipIt was the first zip utility for Mac?

>I use Zipit 2.2.2 on MacOS 9.1 and compress files
>to / from OSX and Win without any prob.
>A trial version can be downloaded at
>http://www.maczipit.com/zipit-222.sea.bin
>or
>http://www.maczipit.com/download.html
>
>hope that helps,
>JB

I would expect that Stuffit is at least aware of archive in that format.

And I use MacZip, which is free and available from download.com. I use it
to move stuff back and forth between mac <> mac and mac <> PC routinely. I
don't know if it is using the format you quote but it would seem a bit daft
if it didn't.
Admittedly MacZip has a less than friendly interface, so I've never looked
at the geekier things it can do (you can send it command-line type commands
and arguments via applescript for instance), only ever used it by dropping
folders or archives on it, which works well enough.

Martin Baxter


___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: rev and zip files

2005-02-09 Thread Richard Gaskin
Martin Baxter wrote:
Richard Gaskin wrote:
...  If you take the time
to store the type and creator codes obtained from "the detailed files"
on Mac you can even restore those when you write them out again --
something the Zip format doesn't handle at all.
Well that's not entirely true Richard. The zip utilities for Mac that I've
used create a folder in the zip archive called "XtraStuf.mac".
I must be old. :)  Apparently Mac extensions were added to the spec -- 
from :

  Third-party Mappings:
 -ZipIt Macintosh Extra Field (long) (0x2605):
  The following is the layout of the ZipIt extra block
  for Macintosh. The local-header and central-header versions
  are identical. This block must be present if the file is
  stored MacBinary-encoded and it should not be used if the file
  is not stored MacBinary-encoded.
  Value SizeDescription
  - ---
  (Mac2)  0x2605Short   tag for this extra block type
  TSize Short   total data size for this block
  "ZPIT"beLong  extra-field signature
  FnLen Bytelength of FileName
  FileName  variablefull Macintosh filename
  FileType  Byte[4] four-byte Mac file type string
  Creator   Byte[4] four-byte Mac creator string
Which Mac Zip tools use those?
And do any of the Win Zip tools allows you to define the values of those 
fields for moving files cross-platform?

--
 Richard Gaskin
 Fourth World Media Corporation
 ___
 [EMAIL PROTECTED]   http://www.FourthWorld.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: rev and zip files

2005-02-09 Thread Martin Baxter
>Richard Gaskin wrote:
>...  If you take the time
>to store the type and creator codes obtained from "the detailed files"
>on Mac you can even restore those when you write them out again --
>something the Zip format doesn't handle at all.
>

Well that's not entirely true Richard. The zip utilities for Mac that I've
used create a folder in the zip archive called "XtraStuf.mac". When you
extract the archive on another Mac, the contents of this folder are used to
restore any resource forks. When the archive is expanded on a PC this is of
course not used and just appears as a folder containing useless files.

Inside XtraStuf.mac there is a file for any file in the archive that has a
resource fork, with the same name and path as the data fork file (ie the
directory structure of the archive is reproduced inside XtraStuf.mac where
necessary, so that the path to the resource fork file matches the path to
the data fork file, excepting the first directory).

Martin Baxter



___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: rev and zip files

2005-02-08 Thread Chipp Walters
Yep, we already have one in the works...
-Chipp
Richard Gaskin wrote:
Dwayne Rothe wrote:
Hi All,
Is there a known way to open and move the contents of a zip file from 
within a rev stack (obviously Win OS) ?

Sounds like a good opportunity for Chris at Altuit to craft an external. 
 Doable Chipp?

If the format isn't important but you just need to work with multiple 
files, you can store gzip-compressed data in custom properties in a 
stack file, using that stack file as the carrier.  If you take the time 
to store the type and creator codes obtained from "the detailed files" 
on Mac you can even restore those when you write them out again -- 
something the Zip format doesn't handle at all.

___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: rev and zip files

2005-02-08 Thread Richard Gaskin
Dwayne Rothe wrote:
Hi All,
Is there a known way to open and move the contents of a zip file from within a 
rev stack (obviously Win OS) ?
Sounds like a good opportunity for Chris at Altuit to craft an external. 
 Doable Chipp?

If the format isn't important but you just need to work with multiple 
files, you can store gzip-compressed data in custom properties in a 
stack file, using that stack file as the carrier.  If you take the time 
to store the type and creator codes obtained from "the detailed files" 
on Mac you can even restore those when you write them out again -- 
something the Zip format doesn't handle at all.

--
 Richard Gaskin
 Fourth World Media Corporation
 ___
 [EMAIL PROTECTED]   http://www.FourthWorld.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


rev and zip files

2005-02-08 Thread Dwayne Rothe
Hi All,
Is there a known way to open and move the contents of a zip file from within a 
rev stack (obviously Win OS) ?
 e.g I have a folder with ? qty of  txt files and image files (.jpg) compressed 
to a zip file named data.zip
I want to be able to decompress and put the contents of the zip file into a 
chosen folder!

Cheers Dwayne...
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution