Hi all, This small piece of code allows to save a screenshot from every card in a stack.
To use this code in your stack, you should provide a valid filepath in your platform of choice and use the actual name of your stack. -- To save screenshots as PNG -- --------------------------------------------------------- repeat with i = 1 to the number of cards of this stack if i < 10 then put "C:/myFile_00" & i & ".png" into tFile else put "C:/myFile_0" & i & ".png" into tFile end if go to card i export snapshot from this cd of stack "myStack" to file tFile as PNG end repeat -- To save screenshots as JPEG -- --------------------------------------------------------- set the JPEGQuality to 90 repeat with i = 1 to the number of cards of this stack if i < 10 then put "C:/myFile_00" & i & ".jpg" into tFile else put "C:/myFile_0" & i & ".jpg" into tFile end if go to card i export snapshot from this cd of stack "myStack" to file tFile as JPEG end repeat _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode