Re: Exporting a snapshot directly to Preview

2012-03-13 Thread Jim Hurley
(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?


Jim



 
 Message: 17
 Date: Mon, 12 Mar 2012 14:00:43 -0800
 From: Scott Rossi sc...@tactilemedia.com
 To: LiveCode Mail List use-livecode@lists.runrev.com
 Subject: Re: Exporting a snapshot directly to Preview
 Message-ID: cb83b20b.5b07d%sc...@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.
 
 Regards,
 
 Scott Rossi
 Creative Director
 Tactile Media, UX Design
 
 


___
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


Re: Exporting a snapshot directly to Preview

2012-03-13 Thread Colin Holgate
My variation of the syntax leaves it up to the system to open the file. It 
would be wrong of you to predetermine that a user sees the document in any 
particular program. Just leave off the part where you set the app to use, and 
the system will take care of that for you.


On Mar 13, 2012, at 1:24 PM, Jim Hurley wrote:

 Does anyone know what program, if there is ONE, that opens when you double 
 click on a jpg or png image in Windows?

___
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


Re: Exporting a snapshot directly to Preview

2012-03-12 Thread Scott Rossi
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@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your subscription
 preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode



___
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