Save screenshots from every card in a stack

Ken Ray kray at sonsothunder.com
Tue May 3 09:50:07 EDT 2011


> 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 

Neat idea, Alejandro!

The script is very straightforward, too...

Ken Ray
Sons of Thunder Software, Inc.
Email: kray at sonsothunder.com
Web Site: http://www.sonsothunder.com/






More information about the use-livecode mailing list