Converting referenced images to embedded control images

Klaus Major klaus at major-k.de
Mon Jun 9 13:17:01 EDT 2003


Hi Jim,

sorry, here is a correct one... ;-)

...
>> 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:" & the 
filename of img 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 short name of control i into line i of results
     ## won't work otherwise...
>>   end repeat
>>   return results
>> end theControls
>>
>> So what goes into:
>>
>> Change from referenced to embedded
>>
>> Thinking wishfully,
>>
>> Jim
>
Sorry for the wrong script...


Regards

Klaus Major
klaus at major-k.de




More information about the use-livecode mailing list