standalone back to stack?

Monte Goulding monte at sweattechnologies.com
Mon Apr 5 19:33:22 EDT 2004


Hi Eric

Here's some code I posted a few days ago:

on mouseUp
  answer file "Standalone"
  if it is "cancel" then exit to top
  put url ("binfile:"&it) into tStack
  repeat forever
    put offset("#!/bin/sh",char 10 to -1 of tStack) into tOff
    if tOff = 0 then exit repeat
    put char tOff+9 to -1 of tStack into tStack
  end repeat
  ask file "Stack"
  if it is "cancel" then exit to top
  put tStack into url ("binfile:"&it)
end mouseUp

Cheers

Monte

> 
> I have some MC executables I wrote; is there any way to split a 
> stack off from
> a metacard executable and read it as a stack in revolution? Suggestions?



More information about the use-livecode mailing list