Export Snapshot

Marty Knapp martyknapp at comcast.net
Thu Feb 16 21:55:32 EST 2006


I'm tinkering with the snapshot command for the first time and something 
isn't clicking with me. Here's my script:

on mouseUp
  ask file "Save image as:"
  export snapshot from rect(the rect of graphic "BS") to file it as JPEG
end mouseUp

I get a file that my Mac thinks is a text file, though I can open it in 
Photoshop. I can probably live with that, but instead of getting the 
portion of my stack window I want, I get coordinants absolute to my 
screen (of the right proportions). Everything else I've tried gets an 
error. Do I need to do a calculation of my object/window relative to the 
screen rect or what am I missing?

I'm using a trial of 2.7 (boy is it buggy!)

Thanks for any help,
Marty Knapp



More information about the use-livecode mailing list