Capturing Card Info in order to duplicate via script?

Patten, John John.Patten at sbcusd.k12.ca.us
Fri Oct 29 11:27:22 EDT 2004


Thanks Richard and Jeanne...

I pretty much guessed the same.  My other unwritten question was whether there would be any advantage to creating card via script as opposed to just playing stack via web.   Only advantage I can see then would probably be more typing practice ;-)

Cheers!

John Patten




-----Original Message-----
From:	use-revolution-bounces at lists.runrev.com on behalf of use-revolution-request at lists.runrev.com

------------------------------

Message: 9
Date: Thu, 28 Oct 2004 17:56:52 -0700
From: Richard Gaskin <ambassador at fourthworld.com>
Subject: Re: Capturing Card Info in order to duplicate via script?
To: How to use Revolution <use-revolution at lists.runrev.com>
Message-ID: <41819554.8020704 at fourthworld.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

John Patten wrote:
> Hi All... 
> 
> Is there a utility that can extract all the card information, such as
> buttons, fields, images, etc. ...And get all the relative information about
> those objects, such as location, screen, color, title, filename etc. etc.  
> 
> I'm interested in the idea of a custom player, ... that plays rev stacks off
> the web, ...but I was thinking if you could set a fld in a player to run a
> script off a text file on a web server, that creates a new card and then the
> fields, the fld contents, the buttons, images, image fileanames, etc. etc.
> ...your player could be what ever you want.
> 
> Thing that would make this easier is if there was a utility that could turn
> around and "copy" a card and create scripts to develop the card
> automatically. Wishful thinking? Could this be done?

You could write out all of the props of all objects to an XML file and 
reconstitute them on the other side, but having done that I can tell you 
it's far more efficient to use the native binary structures whenever 
possible:

Why not copy the card to a new stack, save the stack, and transfer that 
stack file?

Smaller, leaner, faster, and about a hundred lines less code. :)

--
  Richard Gaskin
  Fourth World Media Corporation
  __________________________________________________
  Rev tools and more: http://www.fourthworld.com/rev

------------------------------

Message: 10
D

Message: 16
Date: Fri, 29 Oct 2004 03:08:18 -0700
From: "Jeanne A. E. DeVoto" <revolution at jaedworks.com>
Subject: Re: Capturing Card Info in order to duplicate via script?
To: How to use Revolution <use-revolution at lists.runrev.com>
Message-ID: <p06100589bda7c55aae51@[66.93.39.98]>
Content-Type: text/plain; charset="us-ascii" ; format="flowed"

At 3:42 PM -0700 10/28/2004, John Patten wrote:
>I'm interested in the idea of a custom player, ... that plays rev stacks off
>the web, ...but I was thinking if you could set a fld in a player to run a
>script off a text file on a web server, that creates a new card and then the
>fields, the fld contents, the buttons, images, image fileanames, etc. etc.
>...your player could be what ever you want.

Why not just run the stack itself off the web?
-- 
jeanne a. e. devoto ~ revolution at jaedworks.com
http://www.jaedworks.com

------------------------------

End of use-revolution Digest, Vol 13, Issue 70
**********************************************




More information about the use-livecode mailing list