Exporting a snapshot directly to Preview
Scott Rossi
scott at tactilemedia.com
Mon Mar 12 18:00:43 EDT 2012
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.
Regards,
Scott Rossi
Creative Director
Tactile Media, UX Design
Recently, Jim Hurley wrote:
> Is it possible to export a snapshot so that it opens directly in Preview?
> (Where it might be printed.)
>
> What would be the comparable image viewer in Windows? (Where it might be
> printed.)
>
> Thanks,
>
> Jim Hurley
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
More information about the use-livecode
mailing list