Converting referenced images to embedded control images
Klaus Major
klaus at major-k.de
Mon Jun 9 10:35:12 EDT 2003
Hi Jim,
> I have a folder with a stack and a large number of referenced images.
>
> I would like to embed these images. Is there a way to do this
> programmatically? Something like
>
> repeat with i = 1 to the number of cards in this stack
> go to card i
> repeat for each line tLine in theControls()
> if "image" is in the name of tLine then
if the filename of img tLine <> empty then put url("binfile:" &
tLine) into img tLine
## check if not already embedded, then suck it :-)
> end if
> end repeat
> end repeat
>
> function theControls
> repeat with i = 1 to the number of controls
> put the name of control i into line i of results
> end repeat
> return results
> end theControls
>
> So what goes into:
>
> Change from referenced to embedded
>
> Thinking wishfully,
>
> Jim
Hope that helps :-)
Regards
Klaus Major
klaus at major-k.de
More information about the use-livecode
mailing list