Can't seem to print the script of a card

Len Morgan len-morgan at crcom.net
Sat Jan 16 21:39:29 EST 2010


I'm trying to write a recursive stack printer and I'm having trouble 
with "unnamed" cards (i.e., cards that have the default name of "card id 
1002").

I use the following:

on printCards pStack
     put the cardNames of stack pStack into theCards

     repeat for each line c of theCards
         put the script of card c of stack pStack into theScript
         ...
     end repeat
end printCards

I get an error saying "Can't find card"  every time I hit a card that 
has never been named.  Is this not possible or am I doing something wrong?

len morgan



More information about the use-livecode mailing list