Capturing Card Info in order to duplicate via script?

Richard Gaskin ambassador at fourthworld.com
Thu Oct 28 20:56:52 EDT 2004


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


More information about the use-livecode mailing list