Exporting a snapshot directly to Preview
jhurley0305 at sbcglobal.net
Tue Mar 13 12:24:19 CDT 2012
(Forgot the Subject line.)
Thanks Scott and Colin,
LiveCode and this list make it sooo easy. It is almost embarrassing.
Does anyone know what program, if there is ONE, that opens when you double click on a jpg or png image in Windows?
What happens when you click on an image.jpg? Does Windows present options?
> Message: 17
> Date: Mon, 12 Mar 2012 14:00:43 -0800
> From: Scott Rossi <scott at tactilemedia.com>
> To: LiveCode Mail List <use-livecode at lists.runrev.com>
> Subject: Re: Exporting a snapshot directly to Preview
> Message-ID: <CB83B20B.5B07D%scott at tactilemedia.com>
> Content-Type: text/plain; charset="US-ASCII"
> Hi Jim:
> Here's an example for OS X:
> on mouseUp
> put specialFolderPath("desktop") & "/exported.png" into theFilePath
> export snapshot from img 1 to file theFilePath as PNG
> launch theFilePath with "/Applications/Preview.app"
> end mouseUp
> You can choose whatever image format you need, and you should probably make
> the script more robust by checking for the existence/path of the Preview
> app, confirm overwriting of the exported file, etc.
> For Windows, you might be able to use MS Paint but I haven't tested this.
> Hope this helps.
> Scott Rossi
> Creative Director
> Tactile Media, UX Design
More information about the use-livecode