Decompression question

Tim tim11 at bellatlantic.net
Wed Jan 30 14:06:01 EST 2002


On 1/30/02 4:49 AM, "Geoff Canyon" <gcanyon at inspiredlogic.com> wrote:

> At 10:51 PM -0500 1/29/02, Tim wrote:
>> Under OS X. Now when I try to  decompress someProject.rev, I get the
>> following error message:
>> 
>> Error description: decompress: string is not compressed data
> 
> Can you post the actual code you're using?
> 
> regards,
> 
> Geoff
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution

Yes, here's the repost of the previously posted email:

One way I share one revo project between 2 platforms (PC and Mac) is by
having the shell stack (the stack that opens the real modifiable stack)
compress and ftp the stack that gets modified to a server. Then the same
shell stack on a different platform downloads the modified stack and does
the same thing. The script looks something like this:

-- Script in the shell stack

on preOpenStack
  get the platform
  if it is "MacOS" then
    put "PowerBookHD/Revolution Projects/someProject.rev" into tLocalFile
  else
    put "C:/Documents and Settings/Administrator/Desktop/someProject.rev"
into tLocalFile
  end if
  set the cursor to busy
  put URL 
"ftp://username:password@ftp.ispname.com/www/somefolder/someProject.rev"
into tRemoteFile
  put decompress(tRemoteFile) into URL tLocalFile
  toplevel stack tLocalFile
end preOpenStack


--Script in the ³Close² button of the modifiable stack that gets uploaded

on mouseUp
  get the platform
  if it is "MacOS" then
    put "PowerBookHD/Revolution Projects/someProject.rev" into tLocalFile
  else
    put "C:/Documents and Settings/Administrator/Desktop/someProject.rev"
into tLocalFile
  end if
  set the cursor to busy
  save stack "someProject.rev"
 put compress(tLocalFile) into URL
"ftp://username:password@ftp.ispname.com/www/somefolder/someProject.rev"
  close stack "someProject.rev"
end mouseUp


Now, everything worked fine until I tried it under OS X. Now when I open the
shell stack and it tries to download and decompress someProject.rev, I get
the following error message:

Error description: decompress: string is not compressed data

SomeProject.rev does not open. While compressing it and uploading is no
problem. I should add that both comression/decompression work fine under
W2K. The problem is only under OS X.

TIA,
-- 
Tim




More information about the Use-livecode mailing list